]> git.sur5r.net Git - openldap/blobdiff - clients/ud/string_to_key.c
Don't depend error handling on exact resultCode.
[openldap] / clients / ud / string_to_key.c
index 3f53a0f41eef1eb76084aed30c0f2b083d9f9aab..44f683c28369f84783c2a1c36eef19136df70540 100644 (file)
@@ -1,10 +1,12 @@
+/* $OpenLDAP$ */
+/*
+ * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
 #include "portable.h"
 
-#if defined(HAVE_KERBEROS) && !defined(openbsd)
+#if defined(LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND) && !defined(openbsd)
 /*
- * $Source: /repo/OpenLDAP/pkg/ldap/clients/ud/string_to_key.c,v $
- * $Author: kdz $
- *
  * Copyright 1985, 1986, 1987, 1988, 1989 by the Massachusetts Institute
  * of Technology.
  *
@@ -122,7 +124,7 @@ des_string_to_key( char *str, register des_cblock *key )
 #ifdef USE_DES_DEBUG
     if (des_debug)
        fprintf(stdout,
-               "\nResulting string_to_key = 0x%x 0x%x\n",
+               "\nResulting string_to_key = 0x%lx 0x%lx\n",
                *((unsigned long *) key),
                *((unsigned long *) key+1));
 #endif