]> git.sur5r.net Git - openldap/commitdiff
ITS#7327 smbk5pwd: error if crypto backend unsupported
authorJan Vcelak <jvcelak@redhat.com>
Thu, 19 Jul 2012 11:34:35 +0000 (13:34 +0200)
committerHoward Chu <hyc@openldap.org>
Thu, 26 Jul 2012 17:15:39 +0000 (10:15 -0700)
contrib/slapd-modules/smbk5pwd/smbk5pwd.c

index d4d7f6fe3331e3b1c405c6f6fde001c2b830cb6e..37f55da498286268d0210bb00190015da0ba130f 100644 (file)
@@ -68,9 +68,11 @@ static ObjectClass *oc_krb5KDCEntry;
 #ifdef HAVE_GNUTLS
 #include <gcrypt.h>
 typedef unsigned char DES_cblock[8];
-#else
+#elif HAVE_OPENSSL
 #include <openssl/des.h>
 #include <openssl/md4.h>
+#else
+#error Unsupported crypto backend.
 #endif
 #include "ldap_utf8.h"