diff options
author | jsing <> | 2015-09-10 14:29:22 +0000 |
---|---|---|
committer | jsing <> | 2015-09-10 14:29:22 +0000 |
commit | 0a913351fcafdac683d490f6de2b65ac6460ec11 (patch) | |
tree | 1ccc9acacb7e31133622338e597dcea4a07e283b /src/lib/libcrypto/ec | |
parent | 02f98306c5c76c6db71d0c7c6984b783bfeba226 (diff) | |
download | openbsd-0a913351fcafdac683d490f6de2b65ac6460ec11.tar.gz openbsd-0a913351fcafdac683d490f6de2b65ac6460ec11.tar.bz2 openbsd-0a913351fcafdac683d490f6de2b65ac6460ec11.zip |
Replace remaining M_ASN1_STRING_* macros with calls to ASN1_STRING_*.
This is not the same as the macro expansion, however the ASN1_STRING_*
functions do match the macro expansions.
ok doug@ miod@
Diffstat (limited to 'src/lib/libcrypto/ec')
-rw-r--r-- | src/lib/libcrypto/ec/ec_asn1.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ec/ec_asn1.c b/src/lib/libcrypto/ec/ec_asn1.c index 2e7e1746fa..ae6ed63afd 100644 --- a/src/lib/libcrypto/ec/ec_asn1.c +++ b/src/lib/libcrypto/ec/ec_asn1.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_asn1.c,v 1.16 2015/07/29 14:58:34 jsing Exp $ */ | 1 | /* $OpenBSD: ec_asn1.c,v 1.17 2015/09/10 14:29:22 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Nils Larsch for the OpenSSL project. | 3 | * Written by Nils Larsch for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -1367,8 +1367,8 @@ d2i_ECPrivateKey(EC_KEY ** a, const unsigned char **in, long len) | |||
1367 | 1367 | ||
1368 | if (priv_key->privateKey) { | 1368 | if (priv_key->privateKey) { |
1369 | ret->priv_key = BN_bin2bn( | 1369 | ret->priv_key = BN_bin2bn( |
1370 | M_ASN1_STRING_data(priv_key->privateKey), | 1370 | ASN1_STRING_data(priv_key->privateKey), |
1371 | M_ASN1_STRING_length(priv_key->privateKey), | 1371 | ASN1_STRING_length(priv_key->privateKey), |
1372 | ret->priv_key); | 1372 | ret->priv_key); |
1373 | if (ret->priv_key == NULL) { | 1373 | if (ret->priv_key == NULL) { |
1374 | ECerr(EC_F_D2I_ECPRIVATEKEY, | 1374 | ECerr(EC_F_D2I_ECPRIVATEKEY, |
@@ -1391,8 +1391,8 @@ d2i_ECPrivateKey(EC_KEY ** a, const unsigned char **in, long len) | |||
1391 | ECerr(EC_F_D2I_ECPRIVATEKEY, ERR_R_EC_LIB); | 1391 | ECerr(EC_F_D2I_ECPRIVATEKEY, ERR_R_EC_LIB); |
1392 | goto err; | 1392 | goto err; |
1393 | } | 1393 | } |
1394 | pub_oct = M_ASN1_STRING_data(priv_key->publicKey); | 1394 | pub_oct = ASN1_STRING_data(priv_key->publicKey); |
1395 | pub_oct_len = M_ASN1_STRING_length(priv_key->publicKey); | 1395 | pub_oct_len = ASN1_STRING_length(priv_key->publicKey); |
1396 | /* save the point conversion form */ | 1396 | /* save the point conversion form */ |
1397 | ret->conv_form = (point_conversion_form_t) (pub_oct[0] & ~0x01); | 1397 | ret->conv_form = (point_conversion_form_t) (pub_oct[0] & ~0x01); |
1398 | if (!EC_POINT_oct2point(ret->group, ret->pub_key, | 1398 | if (!EC_POINT_oct2point(ret->group, ret->pub_key, |