diff options
author | jsing <> | 2015-07-29 14:58:34 +0000 |
---|---|---|
committer | jsing <> | 2015-07-29 14:58:34 +0000 |
commit | 4b2596fb0f28cb59c8918b16cdae591454312175 (patch) | |
tree | ffda12d1155f37910342cc3f090b8425ad4cf03a /src/lib/libcrypto/ec | |
parent | ef1330e743f37f67eea11df4f4993267e06531dd (diff) | |
download | openbsd-4b2596fb0f28cb59c8918b16cdae591454312175.tar.gz openbsd-4b2596fb0f28cb59c8918b16cdae591454312175.tar.bz2 openbsd-4b2596fb0f28cb59c8918b16cdae591454312175.zip |
Expand obsolete M_ASN1.*(cmp|dup|print|set) macros - no change in generated
assembly.
ok bcook@
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 0ee949134e..2e7e1746fa 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.15 2015/07/25 14:36:39 jsing Exp $ */ | 1 | /* $OpenBSD: ec_asn1.c,v 1.16 2015/07/29 14:58:34 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Nils Larsch for the OpenSSL project. | 3 | * Written by Nils Larsch for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -858,8 +858,8 @@ ec_asn1_group2curve(const EC_GROUP * group, X9_62_CURVE * curve) | |||
858 | } | 858 | } |
859 | 859 | ||
860 | /* set a and b */ | 860 | /* set a and b */ |
861 | if (!M_ASN1_OCTET_STRING_set(curve->a, a_buf, len_1) || | 861 | if (!ASN1_STRING_set(curve->a, a_buf, len_1) || |
862 | !M_ASN1_OCTET_STRING_set(curve->b, b_buf, len_2)) { | 862 | !ASN1_STRING_set(curve->b, b_buf, len_2)) { |
863 | ECerr(EC_F_EC_ASN1_GROUP2CURVE, ERR_R_ASN1_LIB); | 863 | ECerr(EC_F_EC_ASN1_GROUP2CURVE, ERR_R_ASN1_LIB); |
864 | goto err; | 864 | goto err; |
865 | } | 865 | } |
@@ -1447,7 +1447,7 @@ i2d_ECPrivateKey(EC_KEY * a, unsigned char **out) | |||
1447 | ECerr(EC_F_I2D_ECPRIVATEKEY, ERR_R_BN_LIB); | 1447 | ECerr(EC_F_I2D_ECPRIVATEKEY, ERR_R_BN_LIB); |
1448 | goto err; | 1448 | goto err; |
1449 | } | 1449 | } |
1450 | if (!M_ASN1_OCTET_STRING_set(priv_key->privateKey, buffer, buf_len)) { | 1450 | if (!ASN1_STRING_set(priv_key->privateKey, buffer, buf_len)) { |
1451 | ECerr(EC_F_I2D_ECPRIVATEKEY, ERR_R_ASN1_LIB); | 1451 | ECerr(EC_F_I2D_ECPRIVATEKEY, ERR_R_ASN1_LIB); |
1452 | goto err; | 1452 | goto err; |
1453 | } | 1453 | } |
@@ -1484,7 +1484,7 @@ i2d_ECPrivateKey(EC_KEY * a, unsigned char **out) | |||
1484 | } | 1484 | } |
1485 | priv_key->publicKey->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT | 0x07); | 1485 | priv_key->publicKey->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT | 0x07); |
1486 | priv_key->publicKey->flags |= ASN1_STRING_FLAG_BITS_LEFT; | 1486 | priv_key->publicKey->flags |= ASN1_STRING_FLAG_BITS_LEFT; |
1487 | if (!M_ASN1_BIT_STRING_set(priv_key->publicKey, buffer, | 1487 | if (!ASN1_STRING_set(priv_key->publicKey, buffer, |
1488 | buf_len)) { | 1488 | buf_len)) { |
1489 | ECerr(EC_F_I2D_ECPRIVATEKEY, ERR_R_ASN1_LIB); | 1489 | ECerr(EC_F_I2D_ECPRIVATEKEY, ERR_R_ASN1_LIB); |
1490 | goto err; | 1490 | goto err; |