diff options
| author | jsing <> | 2015-02-10 05:12:23 +0000 |
|---|---|---|
| committer | jsing <> | 2015-02-10 05:12:23 +0000 |
| commit | 2bd884004b68a3cdb5e24f3a1e6e8e3baa60a43e (patch) | |
| tree | 589ebdd9bb450a4df09d2ed962b5d2178ebf5237 /src/lib/libcrypto/dh/dh_asn1.c | |
| parent | 803fe92d2ba2e99892a8bb84620d364da4518cb7 (diff) | |
| download | openbsd-2bd884004b68a3cdb5e24f3a1e6e8e3baa60a43e.tar.gz openbsd-2bd884004b68a3cdb5e24f3a1e6e8e3baa60a43e.tar.bz2 openbsd-2bd884004b68a3cdb5e24f3a1e6e8e3baa60a43e.zip | |
Expand the -IMPLEMENT_ASN1_ENCODE_FUNCTIONS_(const_)?fname macros so that
the code is visible and functions can be readily located.
Change has been scripted and there is no change to the generated assembly.
Discussed with beck@ miod@ tedu@
Diffstat (limited to 'src/lib/libcrypto/dh/dh_asn1.c')
| -rw-r--r-- | src/lib/libcrypto/dh/dh_asn1.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/lib/libcrypto/dh/dh_asn1.c b/src/lib/libcrypto/dh/dh_asn1.c index ee478c7958..9d76974659 100644 --- a/src/lib/libcrypto/dh/dh_asn1.c +++ b/src/lib/libcrypto/dh/dh_asn1.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dh_asn1.c,v 1.6 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: dh_asn1.c,v 1.7 2015/02/10 05:12:23 jsing Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2000. | 3 | * project 2000. |
| 4 | */ | 4 | */ |
| @@ -86,7 +86,19 @@ ASN1_SEQUENCE_cb(DHparams, dh_cb) = { | |||
| 86 | ASN1_OPT(DH, length, ZLONG), | 86 | ASN1_OPT(DH, length, ZLONG), |
| 87 | } ASN1_SEQUENCE_END_cb(DH, DHparams) | 87 | } ASN1_SEQUENCE_END_cb(DH, DHparams) |
| 88 | 88 | ||
| 89 | IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(DH, DHparams, DHparams) | 89 | |
| 90 | DH * | ||
| 91 | d2i_DHparams(DH **a, const unsigned char **in, long len) | ||
| 92 | { | ||
| 93 | return (DH *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, | ||
| 94 | &DHparams_it); | ||
| 95 | } | ||
| 96 | |||
| 97 | int | ||
| 98 | i2d_DHparams(const DH *a, unsigned char **out) | ||
| 99 | { | ||
| 100 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &DHparams_it); | ||
| 101 | } | ||
| 90 | 102 | ||
| 91 | DH * | 103 | DH * |
| 92 | DHparams_dup(DH *dh) | 104 | DHparams_dup(DH *dh) |
