summaryrefslogtreecommitdiffstats
path: root/src/lib/gssapi/comp_oid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/gssapi/comp_oid.c')
-rw-r--r--src/lib/gssapi/comp_oid.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/lib/gssapi/comp_oid.c b/src/lib/gssapi/comp_oid.c
new file mode 100644
index 000000000..3f24f0226
--- /dev/null
+++ b/src/lib/gssapi/comp_oid.c
@@ -0,0 +1,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));
+}