File: OID__Set.xs

package info (click to toggle)
libgssapi-perl 0.28-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 412 kB
  • sloc: perl: 758; makefile: 6
file content (95 lines) | stat: -rw-r--r-- 1,735 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
GSSAPI::OID::Set_out
new(class)
	char *	class
    PREINIT:
	OM_uint32	minor_status;
    CODE:
	if (GSS_ERROR(gss_create_empty_oid_set(&minor_status, &RETVAL))) {
	    XSRETURN_UNDEF;
	}
    OUTPUT:
	RETVAL

void
DESTROY(oidset)
	GSSAPI::OID::Set	oidset
    PREINIT:
	OM_uint32	minor;
    CODE:
	if (oidset != 0 && oid_set_is_dynamic(oidset)) {
	    (void)gss_release_oid_set(&minor, &oidset);
	}

GSSAPI::Status
insert(oidset, oid)
	GSSAPI::OID::Set	oidset
	GSSAPI::OID		oid
    CODE:
	if (! oid_set_is_dynamic(oidset)) {
	    croak("oidset is not alterable");
	}
	RETVAL.major = gss_add_oid_set_member(&RETVAL.minor, oid, &oidset);
    OUTPUT:
	RETVAL

GSSAPI::Status
contains(oidset, oid, isthere)
	GSSAPI::OID::Set	oidset
	GSSAPI::OID		oid
	int			isthere
    CODE:
	RETVAL.major = gss_test_oid_set_member(&RETVAL.minor,
						oid, oidset, &isthere);
    OUTPUT:
	RETVAL
	isthere


#
#	Kerberos OID_sets
#

#GSSAPI::OID::Set_const
#gss_mech_set_krb5()
#    CODE:
#	RETVAL = gss_mech_set_krb5;
#    OUTPUT:
#	RETVAL

#GSSAPI::OID::Set_const
#gss_mech_set_krb5_old()
#    CODE:
#	RETVAL = gss_mech_set_krb5_old;
#    OUTPUT:
#	RETVAL

#GSSAPI::OID::Set_const
#gss_mech_set_krb5_both()
#    CODE:
#	RETVAL = gss_mech_set_krb5_both;
#    OUTPUT:
#	RETVAL

# Achim Grolms, 2006-02-04
# deleted this function, it makes the compile
# fail, I don't know if this function is useful
#

#GSSAPI::OID::Set_const
#gss_mech_set_krb5_v2()
#    CODE:
#	RETVAL = gss_mech_set_krb5_v2;
#    OUTPUT:
#	RETVAL

# Achim Grolms, 2006-02-04
# deleted this function, it makes the compile
# fail, I don't know if this function is useful
#
#GSSAPI::OID::Set_const
#gss_mech_set_krb5_v1v2()
#    CODE:
#	RETVAL = gss_mech_set_krb5_v1v2;
#    OUTPUT:
#	RETVAL