Lines Matching refs:oid
46 generic_gss_release_oid(minor_status, oid)
48 gss_OID *oid;
53 if (oid == NULL || *oid == GSS_C_NO_OID)
73 if ((*oid != GSS_C_NT_USER_NAME) &&
74 (*oid != GSS_C_NT_MACHINE_UID_NAME) &&
75 (*oid != GSS_C_NT_STRING_UID_NAME) &&
76 (*oid != GSS_C_NT_HOSTBASED_SERVICE) &&
77 (*oid != GSS_C_NT_ANONYMOUS) &&
78 (*oid != GSS_C_NT_EXPORT_NAME) &&
79 (*oid != gss_nt_service_name)) {
80 free((*oid)->elements);
81 free(*oid);
83 *oid = GSS_C_NO_OID;
88 generic_gss_copy_oid(minor_status, oid, new_oid)
90 const gss_OID_desc * const oid;
101 if (oid == GSS_C_NO_OID)
108 p->length = oid->length;
114 (void) memcpy(p->elements, oid->elements, p->length);
227 generic_gss_oid_to_str(minor_status, oid, oid_str)
229 const gss_OID_desc * const oid;
248 if (oid == GSS_C_NO_OID || oid->length == 0 || oid->elements == NULL)
258 cp = (unsigned char *) oid->elements;
264 for (i = 1; i < oid->length; i++) {
292 cp = (unsigned char *) oid->elements;
293 for (i = 1; i < oid->length; i++) {
310 * This routine will handle 2 types of oid string formats:
318 generic_gss_str_to_oid(minor_status, oid_str, oid)
321 gss_OID *oid;
334 if (oid != NULL)
335 *oid = GSS_C_NO_OID;
340 if (oid == NULL)
399 if ((*oid = (gss_OID) malloc(sizeof (gss_OID_desc)))) {
400 if (((*oid)->elements = (void *) malloc(nbytes))) {
401 (*oid)->length = nbytes;
402 op = (unsigned char *) (*oid)->elements;
445 free(*oid);
446 *oid = GSS_C_NO_OID;