Fixed compilation problem with undefined SHA1_SIGNATURE_SIZE
authorDavid F. Skoll <dfs@roaringpenguin.com>
Tue, 5 Nov 2002 16:36:31 +0000 (16:36 +0000)
committerDavid F. Skoll <dfs@roaringpenguin.com>
Tue, 5 Nov 2002 16:36:31 +0000 (16:36 +0000)
pppd/sha1.h

index 86f982d13cd3ed544db664227b0ccf919a725589..f1d26618b6be6b19433cd3679ddcfe3541af91cc 100644 (file)
@@ -8,6 +8,14 @@
 
 #ifndef __SHA1_INCLUDE_
 
+#ifndef SHA1_SIGNATURE_SIZE
+#ifdef SHA_DIGESTSIZE
+#define SHA1_SIGNATURE_SIZE SHA_DIGESTSIZE
+#else
+#define SHA1_SIGNATURE_SIZE 20
+#endif
+#endif
+
 typedef struct {
     unsigned long state[5];
     unsigned long count[2];
@@ -21,10 +29,3 @@ extern void SHA1_Final(unsigned char[SHA1_SIGNATURE_SIZE], SHA1_CTX *);
 #define __SHA1_INCLUDE_
 #endif /* __SHA1_INCLUDE_ */
 
-#ifndef SHA1_SIGNATURE_SIZE
-#ifdef SHA_DIGESTSIZE
-#define SHA1_SIGNATURE_SIZE SHA_DIGESTSIZE
-#else
-#define SHA1_SIGNATURE_SIZE 20
-#endif
-#endif