ソースを参照

modules/auth_ephemeral: updated to use SHA1_DIGEST_LENGTH #define from openssl/sha.h

Peter Dunkley 12 年 前
コミット
6a92939ee4
1 ファイル変更1 行追加4 行削除
  1. 1 4
      modules/auth_ephemeral/authorize.c

+ 1 - 4
modules/auth_ephemeral/authorize.c

@@ -21,6 +21,7 @@
  *
  */
 #include <openssl/hmac.h>
+#include <openssl/sha.h>
 
 #include "../../basex.h"
 #include "../../dprint.h"
@@ -34,10 +35,6 @@
 #include "autheph_mod.h"
 #include "authorize.h"
 
-#if !defined(SHA_DIGEST_LENGTH)
-#define SHA_DIGEST_LENGTH (20)
-#endif
-
 static inline int get_ha1(struct username* _username, str* _domain,
 				str* _secret, char* _ha1)
 {