Lines Matching refs:oid
52 generic_gss_release_oid(minor_status, oid) in generic_gss_release_oid() argument
54 gss_OID *oid;
59 if (oid == NULL || *oid == GSS_C_NO_OID)
79 if ((*oid != GSS_C_NT_USER_NAME) &&
80 (*oid != GSS_C_NT_MACHINE_UID_NAME) &&
81 (*oid != GSS_C_NT_STRING_UID_NAME) &&
82 (*oid != GSS_C_NT_HOSTBASED_SERVICE) &&
83 (*oid != GSS_C_NT_ANONYMOUS) &&
84 (*oid != GSS_C_NT_EXPORT_NAME) &&
85 (*oid != gss_nt_service_name)) {
86 free((*oid)->elements);
87 free(*oid);
89 *oid = GSS_C_NO_OID;
94 generic_gss_copy_oid(minor_status, oid, new_oid) in generic_gss_copy_oid() argument
96 const gss_OID oid;
107 if (oid == GSS_C_NO_OID)
114 p->length = oid->length;
120 (void) memcpy(p->elements, oid->elements, p->length);
233 generic_gss_oid_to_str(minor_status, oid, oid_str) in generic_gss_oid_to_str() argument
235 const gss_OID oid;
254 if (oid == GSS_C_NO_OID || oid->length == 0 || oid->elements == NULL)
264 cp = (unsigned char *) oid->elements;
270 for (i = 1; i < oid->length; i++) {
298 cp = (unsigned char *) oid->elements;
299 for (i = 1; i < oid->length; i++) {
324 generic_gss_str_to_oid(minor_status, oid_str, oid) in generic_gss_str_to_oid() argument
327 gss_OID *oid;
340 if (oid != NULL)
341 *oid = GSS_C_NO_OID;
346 if (oid == NULL)
405 if ((*oid = (gss_OID) malloc(sizeof (gss_OID_desc)))) {
406 if (((*oid)->elements = (void *) malloc(nbytes))) {
407 (*oid)->length = nbytes;
408 op = (unsigned char *) (*oid)->elements;
451 free(*oid);
452 *oid = GSS_C_NO_OID;