summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2014-05-15 11:25:59 +0000
committerjsing <>2014-05-15 11:25:59 +0000
commitc7bee58156162d7faa5269011e51ac838785e058 (patch)
tree4078bf8f263de532edeec77893de1074e0ff73ae /src
parent8b25899b4c04e7b25fb2318b51b6390f9d5474e8 (diff)
downloadopenbsd-c7bee58156162d7faa5269011e51ac838785e058.tar.gz
openbsd-c7bee58156162d7faa5269011e51ac838785e058.tar.bz2
openbsd-c7bee58156162d7faa5269011e51ac838785e058.zip
Stop being a dummy... presumably these are left overs from pedantic mode
that were not wrapped with #if PEDANTIC. ok miod@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/bn/bn_depr.c2
-rw-r--r--src/lib/libcrypto/dh/dh_depr.c2
-rw-r--r--src/lib/libcrypto/dsa/dsa_depr.c2
-rw-r--r--src/lib/libcrypto/ec/ecp_nistp224.c2
-rw-r--r--src/lib/libcrypto/ec/ecp_nistp256.c2
-rw-r--r--src/lib/libcrypto/ec/ecp_nistp521.c2
-rw-r--r--src/lib/libcrypto/ec/ecp_nistputil.c2
-rw-r--r--src/lib/libcrypto/evp/e_old.c4
-rw-r--r--src/lib/libcrypto/rsa/rsa_depr.c6
-rw-r--r--src/lib/libssl/src/crypto/bn/bn_depr.c2
-rw-r--r--src/lib/libssl/src/crypto/dh/dh_depr.c2
-rw-r--r--src/lib/libssl/src/crypto/dsa/dsa_depr.c2
-rw-r--r--src/lib/libssl/src/crypto/ec/ecp_nistp224.c2
-rw-r--r--src/lib/libssl/src/crypto/ec/ecp_nistp256.c2
-rw-r--r--src/lib/libssl/src/crypto/ec/ecp_nistp521.c2
-rw-r--r--src/lib/libssl/src/crypto/ec/ecp_nistputil.c2
-rw-r--r--src/lib/libssl/src/crypto/evp/e_old.c4
-rw-r--r--src/lib/libssl/src/crypto/rsa/rsa_depr.c6
18 files changed, 4 insertions, 44 deletions
diff --git a/src/lib/libcrypto/bn/bn_depr.c b/src/lib/libcrypto/bn/bn_depr.c
index e4d7f33967..6da0d7cb22 100644
--- a/src/lib/libcrypto/bn/bn_depr.c
+++ b/src/lib/libcrypto/bn/bn_depr.c
@@ -62,8 +62,6 @@
62#include "bn_lcl.h" 62#include "bn_lcl.h"
63#include <openssl/rand.h> 63#include <openssl/rand.h>
64 64
65static void *dummy = &dummy;
66
67#ifndef OPENSSL_NO_DEPRECATED 65#ifndef OPENSSL_NO_DEPRECATED
68BIGNUM * 66BIGNUM *
69BN_generate_prime(BIGNUM *ret, int bits, int safe, const BIGNUM *add, 67BN_generate_prime(BIGNUM *ret, int bits, int safe, const BIGNUM *add,
diff --git a/src/lib/libcrypto/dh/dh_depr.c b/src/lib/libcrypto/dh/dh_depr.c
index acc05f252c..15fcca72d8 100644
--- a/src/lib/libcrypto/dh/dh_depr.c
+++ b/src/lib/libcrypto/dh/dh_depr.c
@@ -61,8 +61,6 @@
61#include <openssl/bn.h> 61#include <openssl/bn.h>
62#include <openssl/dh.h> 62#include <openssl/dh.h>
63 63
64static void *dummy=&dummy;
65
66#ifndef OPENSSL_NO_DEPRECATED 64#ifndef OPENSSL_NO_DEPRECATED
67DH *DH_generate_parameters(int prime_len, int generator, 65DH *DH_generate_parameters(int prime_len, int generator,
68 void (*callback)(int,int,void *), void *cb_arg) 66 void (*callback)(int,int,void *), void *cb_arg)
diff --git a/src/lib/libcrypto/dsa/dsa_depr.c b/src/lib/libcrypto/dsa/dsa_depr.c
index f2da680eb4..3c9958fe3b 100644
--- a/src/lib/libcrypto/dsa/dsa_depr.c
+++ b/src/lib/libcrypto/dsa/dsa_depr.c
@@ -69,8 +69,6 @@
69#define HASH EVP_sha1() 69#define HASH EVP_sha1()
70#endif 70#endif
71 71
72static void *dummy=&dummy;
73
74#ifndef OPENSSL_NO_SHA 72#ifndef OPENSSL_NO_SHA
75 73
76#include <stdio.h> 74#include <stdio.h>
diff --git a/src/lib/libcrypto/ec/ecp_nistp224.c b/src/lib/libcrypto/ec/ecp_nistp224.c
index 29ff2fc1f1..bd8f65b097 100644
--- a/src/lib/libcrypto/ec/ecp_nistp224.c
+++ b/src/lib/libcrypto/ec/ecp_nistp224.c
@@ -1697,6 +1697,4 @@ ec_GFp_nistp224_have_precompute_mult(const EC_GROUP * group)
1697 return 0; 1697 return 0;
1698} 1698}
1699 1699
1700#else
1701static void *dummy = &dummy;
1702#endif 1700#endif
diff --git a/src/lib/libcrypto/ec/ecp_nistp256.c b/src/lib/libcrypto/ec/ecp_nistp256.c
index 85f370cadd..558c29c5ba 100644
--- a/src/lib/libcrypto/ec/ecp_nistp256.c
+++ b/src/lib/libcrypto/ec/ecp_nistp256.c
@@ -2243,6 +2243,4 @@ ec_GFp_nistp256_have_precompute_mult(const EC_GROUP * group)
2243 else 2243 else
2244 return 0; 2244 return 0;
2245} 2245}
2246#else
2247static void *dummy = &dummy;
2248#endif 2246#endif
diff --git a/src/lib/libcrypto/ec/ecp_nistp521.c b/src/lib/libcrypto/ec/ecp_nistp521.c
index fab2224345..0c40f08346 100644
--- a/src/lib/libcrypto/ec/ecp_nistp521.c
+++ b/src/lib/libcrypto/ec/ecp_nistp521.c
@@ -2117,6 +2117,4 @@ ec_GFp_nistp521_have_precompute_mult(const EC_GROUP * group)
2117 return 0; 2117 return 0;
2118} 2118}
2119 2119
2120#else
2121static void *dummy = &dummy;
2122#endif 2120#endif
diff --git a/src/lib/libcrypto/ec/ecp_nistputil.c b/src/lib/libcrypto/ec/ecp_nistputil.c
index 28fecf8b6e..efd6f368c1 100644
--- a/src/lib/libcrypto/ec/ecp_nistputil.c
+++ b/src/lib/libcrypto/ec/ecp_nistputil.c
@@ -204,6 +204,4 @@ ec_GFp_nistp_recode_scalar_bits(unsigned char *sign, unsigned char *digit, unsig
204 *sign = s & 1; 204 *sign = s & 1;
205 *digit = d; 205 *digit = d;
206} 206}
207#else
208static void *dummy = &dummy;
209#endif 207#endif
diff --git a/src/lib/libcrypto/evp/e_old.c b/src/lib/libcrypto/evp/e_old.c
index 6d63ea4269..c84bc29bf6 100644
--- a/src/lib/libcrypto/evp/e_old.c
+++ b/src/lib/libcrypto/evp/e_old.c
@@ -56,9 +56,7 @@
56 * 56 *
57 */ 57 */
58 58
59#ifdef OPENSSL_NO_DEPRECATED 59#ifndef OPENSSL_NO_DEPRECATED
60static void *dummy = &dummy;
61#else
62 60
63#include <openssl/evp.h> 61#include <openssl/evp.h>
64 62
diff --git a/src/lib/libcrypto/rsa/rsa_depr.c b/src/lib/libcrypto/rsa/rsa_depr.c
index a859ded987..1da0dd9087 100644
--- a/src/lib/libcrypto/rsa/rsa_depr.c
+++ b/src/lib/libcrypto/rsa/rsa_depr.c
@@ -62,11 +62,7 @@
62#include <openssl/bn.h> 62#include <openssl/bn.h>
63#include <openssl/rsa.h> 63#include <openssl/rsa.h>
64 64
65#ifdef OPENSSL_NO_DEPRECATED 65#ifndef OPENSSL_NO_DEPRECATED
66
67static void *dummy=&dummy;
68
69#else
70 66
71RSA *RSA_generate_key(int bits, unsigned long e_value, 67RSA *RSA_generate_key(int bits, unsigned long e_value,
72 void (*callback)(int,int,void *), void *cb_arg) 68 void (*callback)(int,int,void *), void *cb_arg)
diff --git a/src/lib/libssl/src/crypto/bn/bn_depr.c b/src/lib/libssl/src/crypto/bn/bn_depr.c
index e4d7f33967..6da0d7cb22 100644
--- a/src/lib/libssl/src/crypto/bn/bn_depr.c
+++ b/src/lib/libssl/src/crypto/bn/bn_depr.c
@@ -62,8 +62,6 @@
62#include "bn_lcl.h" 62#include "bn_lcl.h"
63#include <openssl/rand.h> 63#include <openssl/rand.h>
64 64
65static void *dummy = &dummy;
66
67#ifndef OPENSSL_NO_DEPRECATED 65#ifndef OPENSSL_NO_DEPRECATED
68BIGNUM * 66BIGNUM *
69BN_generate_prime(BIGNUM *ret, int bits, int safe, const BIGNUM *add, 67BN_generate_prime(BIGNUM *ret, int bits, int safe, const BIGNUM *add,
diff --git a/src/lib/libssl/src/crypto/dh/dh_depr.c b/src/lib/libssl/src/crypto/dh/dh_depr.c
index acc05f252c..15fcca72d8 100644
--- a/src/lib/libssl/src/crypto/dh/dh_depr.c
+++ b/src/lib/libssl/src/crypto/dh/dh_depr.c
@@ -61,8 +61,6 @@
61#include <openssl/bn.h> 61#include <openssl/bn.h>
62#include <openssl/dh.h> 62#include <openssl/dh.h>
63 63
64static void *dummy=&dummy;
65
66#ifndef OPENSSL_NO_DEPRECATED 64#ifndef OPENSSL_NO_DEPRECATED
67DH *DH_generate_parameters(int prime_len, int generator, 65DH *DH_generate_parameters(int prime_len, int generator,
68 void (*callback)(int,int,void *), void *cb_arg) 66 void (*callback)(int,int,void *), void *cb_arg)
diff --git a/src/lib/libssl/src/crypto/dsa/dsa_depr.c b/src/lib/libssl/src/crypto/dsa/dsa_depr.c
index f2da680eb4..3c9958fe3b 100644
--- a/src/lib/libssl/src/crypto/dsa/dsa_depr.c
+++ b/src/lib/libssl/src/crypto/dsa/dsa_depr.c
@@ -69,8 +69,6 @@
69#define HASH EVP_sha1() 69#define HASH EVP_sha1()
70#endif 70#endif
71 71
72static void *dummy=&dummy;
73
74#ifndef OPENSSL_NO_SHA 72#ifndef OPENSSL_NO_SHA
75 73
76#include <stdio.h> 74#include <stdio.h>
diff --git a/src/lib/libssl/src/crypto/ec/ecp_nistp224.c b/src/lib/libssl/src/crypto/ec/ecp_nistp224.c
index 29ff2fc1f1..bd8f65b097 100644
--- a/src/lib/libssl/src/crypto/ec/ecp_nistp224.c
+++ b/src/lib/libssl/src/crypto/ec/ecp_nistp224.c
@@ -1697,6 +1697,4 @@ ec_GFp_nistp224_have_precompute_mult(const EC_GROUP * group)
1697 return 0; 1697 return 0;
1698} 1698}
1699 1699
1700#else
1701static void *dummy = &dummy;
1702#endif 1700#endif
diff --git a/src/lib/libssl/src/crypto/ec/ecp_nistp256.c b/src/lib/libssl/src/crypto/ec/ecp_nistp256.c
index 85f370cadd..558c29c5ba 100644
--- a/src/lib/libssl/src/crypto/ec/ecp_nistp256.c
+++ b/src/lib/libssl/src/crypto/ec/ecp_nistp256.c
@@ -2243,6 +2243,4 @@ ec_GFp_nistp256_have_precompute_mult(const EC_GROUP * group)
2243 else 2243 else
2244 return 0; 2244 return 0;
2245} 2245}
2246#else
2247static void *dummy = &dummy;
2248#endif 2246#endif
diff --git a/src/lib/libssl/src/crypto/ec/ecp_nistp521.c b/src/lib/libssl/src/crypto/ec/ecp_nistp521.c
index fab2224345..0c40f08346 100644
--- a/src/lib/libssl/src/crypto/ec/ecp_nistp521.c
+++ b/src/lib/libssl/src/crypto/ec/ecp_nistp521.c
@@ -2117,6 +2117,4 @@ ec_GFp_nistp521_have_precompute_mult(const EC_GROUP * group)
2117 return 0; 2117 return 0;
2118} 2118}
2119 2119
2120#else
2121static void *dummy = &dummy;
2122#endif 2120#endif
diff --git a/src/lib/libssl/src/crypto/ec/ecp_nistputil.c b/src/lib/libssl/src/crypto/ec/ecp_nistputil.c
index 28fecf8b6e..efd6f368c1 100644
--- a/src/lib/libssl/src/crypto/ec/ecp_nistputil.c
+++ b/src/lib/libssl/src/crypto/ec/ecp_nistputil.c
@@ -204,6 +204,4 @@ ec_GFp_nistp_recode_scalar_bits(unsigned char *sign, unsigned char *digit, unsig
204 *sign = s & 1; 204 *sign = s & 1;
205 *digit = d; 205 *digit = d;
206} 206}
207#else
208static void *dummy = &dummy;
209#endif 207#endif
diff --git a/src/lib/libssl/src/crypto/evp/e_old.c b/src/lib/libssl/src/crypto/evp/e_old.c
index 6d63ea4269..c84bc29bf6 100644
--- a/src/lib/libssl/src/crypto/evp/e_old.c
+++ b/src/lib/libssl/src/crypto/evp/e_old.c
@@ -56,9 +56,7 @@
56 * 56 *
57 */ 57 */
58 58
59#ifdef OPENSSL_NO_DEPRECATED 59#ifndef OPENSSL_NO_DEPRECATED
60static void *dummy = &dummy;
61#else
62 60
63#include <openssl/evp.h> 61#include <openssl/evp.h>
64 62
diff --git a/src/lib/libssl/src/crypto/rsa/rsa_depr.c b/src/lib/libssl/src/crypto/rsa/rsa_depr.c
index a859ded987..1da0dd9087 100644
--- a/src/lib/libssl/src/crypto/rsa/rsa_depr.c
+++ b/src/lib/libssl/src/crypto/rsa/rsa_depr.c
@@ -62,11 +62,7 @@
62#include <openssl/bn.h> 62#include <openssl/bn.h>
63#include <openssl/rsa.h> 63#include <openssl/rsa.h>
64 64
65#ifdef OPENSSL_NO_DEPRECATED 65#ifndef OPENSSL_NO_DEPRECATED
66
67static void *dummy=&dummy;
68
69#else
70 66
71RSA *RSA_generate_key(int bits, unsigned long e_value, 67RSA *RSA_generate_key(int bits, unsigned long e_value,
72 void (*callback)(int,int,void *), void *cb_arg) 68 void (*callback)(int,int,void *), void *cb_arg)