diff options
author | jsing <> | 2015-10-13 12:31:06 +0000 |
---|---|---|
committer | jsing <> | 2015-10-13 12:31:06 +0000 |
commit | 5ff1950dc06c4d15570f0930366ae7ea3620be02 (patch) | |
tree | c0566c847054d48b8a36d048f8c592a658bebda9 /src | |
parent | 3178ee185d99f11f5351f14936d5574eb24ad85f (diff) | |
download | openbsd-5ff1950dc06c4d15570f0930366ae7ea3620be02.tar.gz openbsd-5ff1950dc06c4d15570f0930366ae7ea3620be02.tar.bz2 openbsd-5ff1950dc06c4d15570f0930366ae7ea3620be02.zip |
Group d2i/i2d function prototypes by type and add missing externs for the
DSAPublicKey, DSAPrivateKey and DSAparams ASN1_ITEMs.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/dsa/dsa.h | 19 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/dsa/dsa.h | 19 |
2 files changed, 24 insertions, 14 deletions
diff --git a/src/lib/libcrypto/dsa/dsa.h b/src/lib/libcrypto/dsa/dsa.h index bd7b26070d..7fbaa29464 100644 --- a/src/lib/libcrypto/dsa/dsa.h +++ b/src/lib/libcrypto/dsa/dsa.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa.h,v 1.18 2014/07/12 16:03:37 miod Exp $ */ | 1 | /* $OpenBSD: dsa.h,v 1.19 2015/10/13 12:31:06 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -221,9 +221,17 @@ int DSA_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, | |||
221 | int DSA_set_ex_data(DSA *d, int idx, void *arg); | 221 | int DSA_set_ex_data(DSA *d, int idx, void *arg); |
222 | void *DSA_get_ex_data(DSA *d, int idx); | 222 | void *DSA_get_ex_data(DSA *d, int idx); |
223 | 223 | ||
224 | DSA * d2i_DSAPublicKey(DSA **a, const unsigned char **pp, long length); | 224 | DSA *d2i_DSAPublicKey(DSA **a, const unsigned char **pp, long length); |
225 | DSA * d2i_DSAPrivateKey(DSA **a, const unsigned char **pp, long length); | 225 | int i2d_DSAPublicKey(const DSA *a, unsigned char **pp); |
226 | DSA * d2i_DSAparams(DSA **a, const unsigned char **pp, long length); | 226 | extern const ASN1_ITEM DSAPublicKey_it; |
227 | |||
228 | DSA *d2i_DSAPrivateKey(DSA **a, const unsigned char **pp, long length); | ||
229 | int i2d_DSAPrivateKey(const DSA *a, unsigned char **pp); | ||
230 | extern const ASN1_ITEM DSAPrivateKey_it; | ||
231 | |||
232 | DSA *d2i_DSAparams(DSA **a, const unsigned char **pp, long length); | ||
233 | int i2d_DSAparams(const DSA *a,unsigned char **pp); | ||
234 | extern const ASN1_ITEM DSAparams_it; | ||
227 | 235 | ||
228 | /* Deprecated version */ | 236 | /* Deprecated version */ |
229 | #ifndef OPENSSL_NO_DEPRECATED | 237 | #ifndef OPENSSL_NO_DEPRECATED |
@@ -239,9 +247,6 @@ int DSA_generate_parameters_ex(DSA *dsa, int bits, | |||
239 | int *counter_ret, unsigned long *h_ret, BN_GENCB *cb); | 247 | int *counter_ret, unsigned long *h_ret, BN_GENCB *cb); |
240 | 248 | ||
241 | int DSA_generate_key(DSA *a); | 249 | int DSA_generate_key(DSA *a); |
242 | int i2d_DSAPublicKey(const DSA *a, unsigned char **pp); | ||
243 | int i2d_DSAPrivateKey(const DSA *a, unsigned char **pp); | ||
244 | int i2d_DSAparams(const DSA *a,unsigned char **pp); | ||
245 | 250 | ||
246 | #ifndef OPENSSL_NO_BIO | 251 | #ifndef OPENSSL_NO_BIO |
247 | int DSAparams_print(BIO *bp, const DSA *x); | 252 | int DSAparams_print(BIO *bp, const DSA *x); |
diff --git a/src/lib/libssl/src/crypto/dsa/dsa.h b/src/lib/libssl/src/crypto/dsa/dsa.h index bd7b26070d..7fbaa29464 100644 --- a/src/lib/libssl/src/crypto/dsa/dsa.h +++ b/src/lib/libssl/src/crypto/dsa/dsa.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa.h,v 1.18 2014/07/12 16:03:37 miod Exp $ */ | 1 | /* $OpenBSD: dsa.h,v 1.19 2015/10/13 12:31:06 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -221,9 +221,17 @@ int DSA_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, | |||
221 | int DSA_set_ex_data(DSA *d, int idx, void *arg); | 221 | int DSA_set_ex_data(DSA *d, int idx, void *arg); |
222 | void *DSA_get_ex_data(DSA *d, int idx); | 222 | void *DSA_get_ex_data(DSA *d, int idx); |
223 | 223 | ||
224 | DSA * d2i_DSAPublicKey(DSA **a, const unsigned char **pp, long length); | 224 | DSA *d2i_DSAPublicKey(DSA **a, const unsigned char **pp, long length); |
225 | DSA * d2i_DSAPrivateKey(DSA **a, const unsigned char **pp, long length); | 225 | int i2d_DSAPublicKey(const DSA *a, unsigned char **pp); |
226 | DSA * d2i_DSAparams(DSA **a, const unsigned char **pp, long length); | 226 | extern const ASN1_ITEM DSAPublicKey_it; |
227 | |||
228 | DSA *d2i_DSAPrivateKey(DSA **a, const unsigned char **pp, long length); | ||
229 | int i2d_DSAPrivateKey(const DSA *a, unsigned char **pp); | ||
230 | extern const ASN1_ITEM DSAPrivateKey_it; | ||
231 | |||
232 | DSA *d2i_DSAparams(DSA **a, const unsigned char **pp, long length); | ||
233 | int i2d_DSAparams(const DSA *a,unsigned char **pp); | ||
234 | extern const ASN1_ITEM DSAparams_it; | ||
227 | 235 | ||
228 | /* Deprecated version */ | 236 | /* Deprecated version */ |
229 | #ifndef OPENSSL_NO_DEPRECATED | 237 | #ifndef OPENSSL_NO_DEPRECATED |
@@ -239,9 +247,6 @@ int DSA_generate_parameters_ex(DSA *dsa, int bits, | |||
239 | int *counter_ret, unsigned long *h_ret, BN_GENCB *cb); | 247 | int *counter_ret, unsigned long *h_ret, BN_GENCB *cb); |
240 | 248 | ||
241 | int DSA_generate_key(DSA *a); | 249 | int DSA_generate_key(DSA *a); |
242 | int i2d_DSAPublicKey(const DSA *a, unsigned char **pp); | ||
243 | int i2d_DSAPrivateKey(const DSA *a, unsigned char **pp); | ||
244 | int i2d_DSAparams(const DSA *a,unsigned char **pp); | ||
245 | 250 | ||
246 | #ifndef OPENSSL_NO_BIO | 251 | #ifndef OPENSSL_NO_BIO |
247 | int DSAparams_print(BIO *bp, const DSA *x); | 252 | int DSAparams_print(BIO *bp, const DSA *x); |