diff options
Diffstat (limited to 'src/lib/libcrypto/dh/dh.h')
-rw-r--r-- | src/lib/libcrypto/dh/dh.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/lib/libcrypto/dh/dh.h b/src/lib/libcrypto/dh/dh.h index 631cd5c685..920af3b92d 100644 --- a/src/lib/libcrypto/dh/dh.h +++ b/src/lib/libcrypto/dh/dh.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dh.h,v 1.17 2016/06/30 02:02:06 bcook Exp $ */ | 1 | /* $OpenBSD: dh.h,v 1.18 2016/11/04 18:35:30 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 | * |
@@ -165,12 +165,10 @@ struct dh_st | |||
165 | this for backward compatibility: */ | 165 | this for backward compatibility: */ |
166 | #define DH_CHECK_P_NOT_STRONG_PRIME DH_CHECK_P_NOT_SAFE_PRIME | 166 | #define DH_CHECK_P_NOT_STRONG_PRIME DH_CHECK_P_NOT_SAFE_PRIME |
167 | 167 | ||
168 | #define d2i_DHparams_fp(fp,x) (DH *)ASN1_d2i_fp((char *(*)())DH_new, \ | 168 | DH *d2i_DHparams_bio(BIO *bp, DH **a); |
169 | (char *(*)())d2i_DHparams,(fp),(unsigned char **)(x)) | 169 | int i2d_DHparams_bio(BIO *bp, DH *a); |
170 | #define i2d_DHparams_fp(fp,x) ASN1_i2d_fp(i2d_DHparams,(fp), \ | 170 | DH *d2i_DHparams_fp(FILE *fp, DH **a); |
171 | (unsigned char *)(x)) | 171 | int i2d_DHparams_fp(FILE *fp, DH *a); |
172 | #define d2i_DHparams_bio(bp,x) ASN1_d2i_bio_of(DH,DH_new,d2i_DHparams,bp,x) | ||
173 | #define i2d_DHparams_bio(bp,x) ASN1_i2d_bio_of_const(DH,i2d_DHparams,bp,x) | ||
174 | 172 | ||
175 | DH *DHparams_dup(DH *); | 173 | DH *DHparams_dup(DH *); |
176 | 174 | ||