Mark nt_password parameter in do_mschap_cpw as unused if were building without openssl
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 20 Dec 2013 00:21:34 +0000 (00:21 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 20 Dec 2013 01:08:38 +0000 (01:08 +0000)
src/modules/rlm_mschap/rlm_mschap.c

index 2acf03b..27f5339 100644 (file)
@@ -673,10 +673,15 @@ static int write_all(int fd, char const *buf, int len) {
  */
 
 static int do_mschap_cpw(rlm_mschap_t *inst,
-                    REQUEST *request, VALUE_PAIR *nt_password,
-                    uint8_t *new_nt_password,
-                    uint8_t *old_nt_hash,
-                    int do_ntlm_auth)
+                        REQUEST *request,
+#ifdef HAVE_OPENSSL_CRYPTO_H
+                        VALUE_PAIR *nt_password,
+#else
+                        UNUSED VALUE_PAIR *nt_password,
+#endif
+                        uint8_t *new_nt_password,
+                        uint8_t *old_nt_hash,
+                        int do_ntlm_auth)
 {
        if (inst->ntlm_cpw && do_ntlm_auth) {
                /*