2 * Unix SMB/CIFS implementation.
4 * Simple GSSAPI wrappers
6 * Copyright (c) 2012 Andreas Schneider <asn@samba.org>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, see <http://www.gnu.org/licenses/>.
23 #include "gss_samba.h"
27 #if !defined(HAVE_GSS_OID_EQUAL)
28 int smb_gss_oid_equal(const gss_OID first_oid
, const gss_OID second_oid
)
30 if (first_oid
== GSS_C_NO_OID
|| second_oid
== GSS_C_NO_OID
) {
34 if (first_oid
== second_oid
) {
38 if ((first_oid
)->length
!= (second_oid
)->length
) {
42 if (memcmp((first_oid
)->elements
, (second_oid
)->elements
,
43 (first_oid
)->length
) == 0) {
49 #endif /* !HAVE_GSS_OID_EQUAL */
51 #endif /* HAVE_GSSAPI */