summaryrefslogtreecommitdiffstats
path: root/src/lib/gssapi/comp_oid.c
blob: 3f24f0226dc7e3dd061cedc4c3e4c40e676e1802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * comp_oid.c --- compare OID's
 *
 * $Source$
 * $Author$
 * $Header$
 * 
 * Copyright 1991 by the Massachusetts Institute of Technology.
 * All Rights Reserved.
 *
 * For copying and distribution information, please see the file
 * <krb5/copyright.h>.
 *
 */

#include <gssapi.h>

int gss_compare_OID(oid1, oid2)
	gss_OID	oid1, oid2;
{
	if (oid1->length != oid2->length)
		return(0);
	return (!memcmp(oid1->elements, oid2->elements, oid1->length));
}