[sr-dev] git:master: modules/auth_ephemeral: updated to use SHA1_DIGEST_LENGTH #define from openssl/sha.h

Peter Dunkley peter.dunkley at crocodile-rcs.com
Tue May 28 01:46:56 CEST 2013


Module: sip-router
Branch: master
Commit: 6a92939ee4b7db6216814dc88e57eccefabb05af
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6a92939ee4b7db6216814dc88e57eccefabb05af

Author: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Date:   Tue May 28 00:46:26 2013 +0100

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

---

 modules/auth_ephemeral/authorize.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/modules/auth_ephemeral/authorize.c b/modules/auth_ephemeral/authorize.c
index 788d2af..4e9f35a 100644
--- a/modules/auth_ephemeral/authorize.c
+++ b/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)
 {




More information about the sr-dev mailing list