summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/dsa/dsa.h19
-rw-r--r--src/lib/libssl/src/crypto/dsa/dsa.h19
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,
221int DSA_set_ex_data(DSA *d, int idx, void *arg); 221int DSA_set_ex_data(DSA *d, int idx, void *arg);
222void *DSA_get_ex_data(DSA *d, int idx); 222void *DSA_get_ex_data(DSA *d, int idx);
223 223
224DSA * d2i_DSAPublicKey(DSA **a, const unsigned char **pp, long length); 224DSA *d2i_DSAPublicKey(DSA **a, const unsigned char **pp, long length);
225DSA * d2i_DSAPrivateKey(DSA **a, const unsigned char **pp, long length); 225int i2d_DSAPublicKey(const DSA *a, unsigned char **pp);
226DSA * d2i_DSAparams(DSA **a, const unsigned char **pp, long length); 226extern const ASN1_ITEM DSAPublicKey_it;
227
228DSA *d2i_DSAPrivateKey(DSA **a, const unsigned char **pp, long length);
229int i2d_DSAPrivateKey(const DSA *a, unsigned char **pp);
230extern const ASN1_ITEM DSAPrivateKey_it;
231
232DSA *d2i_DSAparams(DSA **a, const unsigned char **pp, long length);
233int i2d_DSAparams(const DSA *a,unsigned char **pp);
234extern 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
241int DSA_generate_key(DSA *a); 249int DSA_generate_key(DSA *a);
242int i2d_DSAPublicKey(const DSA *a, unsigned char **pp);
243int i2d_DSAPrivateKey(const DSA *a, unsigned char **pp);
244int i2d_DSAparams(const DSA *a,unsigned char **pp);
245 250
246#ifndef OPENSSL_NO_BIO 251#ifndef OPENSSL_NO_BIO
247int DSAparams_print(BIO *bp, const DSA *x); 252int 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,
221int DSA_set_ex_data(DSA *d, int idx, void *arg); 221int DSA_set_ex_data(DSA *d, int idx, void *arg);
222void *DSA_get_ex_data(DSA *d, int idx); 222void *DSA_get_ex_data(DSA *d, int idx);
223 223
224DSA * d2i_DSAPublicKey(DSA **a, const unsigned char **pp, long length); 224DSA *d2i_DSAPublicKey(DSA **a, const unsigned char **pp, long length);
225DSA * d2i_DSAPrivateKey(DSA **a, const unsigned char **pp, long length); 225int i2d_DSAPublicKey(const DSA *a, unsigned char **pp);
226DSA * d2i_DSAparams(DSA **a, const unsigned char **pp, long length); 226extern const ASN1_ITEM DSAPublicKey_it;
227
228DSA *d2i_DSAPrivateKey(DSA **a, const unsigned char **pp, long length);
229int i2d_DSAPrivateKey(const DSA *a, unsigned char **pp);
230extern const ASN1_ITEM DSAPrivateKey_it;
231
232DSA *d2i_DSAparams(DSA **a, const unsigned char **pp, long length);
233int i2d_DSAparams(const DSA *a,unsigned char **pp);
234extern 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
241int DSA_generate_key(DSA *a); 249int DSA_generate_key(DSA *a);
242int i2d_DSAPublicKey(const DSA *a, unsigned char **pp);
243int i2d_DSAPrivateKey(const DSA *a, unsigned char **pp);
244int i2d_DSAparams(const DSA *a,unsigned char **pp);
245 250
246#ifndef OPENSSL_NO_BIO 251#ifndef OPENSSL_NO_BIO
247int DSAparams_print(BIO *bp, const DSA *x); 252int DSAparams_print(BIO *bp, const DSA *x);