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/pkcs7 | |
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/pkcs7')
-rw-r--r-- | src/lib/libcrypto/pkcs7/pk7_doit.c | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/pkcs7/pk7_lib.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/pkcs7/pk7_doit.c b/src/lib/libcrypto/pkcs7/pk7_doit.c index 2c69edf499..24bcebef61 100644 --- a/src/lib/libcrypto/pkcs7/pk7_doit.c +++ b/src/lib/libcrypto/pkcs7/pk7_doit.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pk7_doit.c,v 1.35 2015/07/19 18:25:59 miod Exp $ */ | 1 | /* $OpenBSD: pk7_doit.c,v 1.36 2015/07/29 14:58:34 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 | * |
@@ -417,7 +417,7 @@ pkcs7_cmp_ri(PKCS7_RECIP_INFO *ri, X509 *pcert) | |||
417 | pcert->cert_info->issuer); | 417 | pcert->cert_info->issuer); |
418 | if (ret) | 418 | if (ret) |
419 | return ret; | 419 | return ret; |
420 | return M_ASN1_INTEGER_cmp(pcert->cert_info->serialNumber, | 420 | return ASN1_STRING_cmp(pcert->cert_info->serialNumber, |
421 | ri->issuer_and_serial->serial); | 421 | ri->issuer_and_serial->serial); |
422 | } | 422 | } |
423 | 423 | ||
@@ -856,7 +856,7 @@ PKCS7_dataFinal(PKCS7 *p7, BIO *bio) | |||
856 | goto err; | 856 | goto err; |
857 | if (!EVP_DigestFinal_ex(mdc, md_data, &md_len)) | 857 | if (!EVP_DigestFinal_ex(mdc, md_data, &md_len)) |
858 | goto err; | 858 | goto err; |
859 | if (M_ASN1_OCTET_STRING_set(p7->d.digest->digest, md_data, | 859 | if (ASN1_STRING_set(p7->d.digest->digest, md_data, |
860 | md_len) == 0) | 860 | md_len) == 0) |
861 | goto err; | 861 | goto err; |
862 | } | 862 | } |
diff --git a/src/lib/libcrypto/pkcs7/pk7_lib.c b/src/lib/libcrypto/pkcs7/pk7_lib.c index 3eec92e29b..9f7e4f2dd3 100644 --- a/src/lib/libcrypto/pkcs7/pk7_lib.c +++ b/src/lib/libcrypto/pkcs7/pk7_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pk7_lib.c,v 1.15 2015/03/19 14:00:22 tedu Exp $ */ | 1 | /* $OpenBSD: pk7_lib.c,v 1.16 2015/07/29 14:58:34 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 | * |
@@ -380,7 +380,7 @@ PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey, | |||
380 | * things the ugly way. */ | 380 | * things the ugly way. */ |
381 | M_ASN1_INTEGER_free(p7i->issuer_and_serial->serial); | 381 | M_ASN1_INTEGER_free(p7i->issuer_and_serial->serial); |
382 | if (!(p7i->issuer_and_serial->serial = | 382 | if (!(p7i->issuer_and_serial->serial = |
383 | M_ASN1_INTEGER_dup(X509_get_serialNumber(x509)))) | 383 | ASN1_STRING_dup(X509_get_serialNumber(x509)))) |
384 | goto err; | 384 | goto err; |
385 | 385 | ||
386 | /* lets keep the pkey around for a while */ | 386 | /* lets keep the pkey around for a while */ |
@@ -545,7 +545,7 @@ PKCS7_RECIP_INFO_set(PKCS7_RECIP_INFO *p7i, X509 *x509) | |||
545 | 545 | ||
546 | M_ASN1_INTEGER_free(p7i->issuer_and_serial->serial); | 546 | M_ASN1_INTEGER_free(p7i->issuer_and_serial->serial); |
547 | if (!(p7i->issuer_and_serial->serial = | 547 | if (!(p7i->issuer_and_serial->serial = |
548 | M_ASN1_INTEGER_dup(X509_get_serialNumber(x509)))) | 548 | ASN1_STRING_dup(X509_get_serialNumber(x509)))) |
549 | return 0; | 549 | return 0; |
550 | 550 | ||
551 | pkey = X509_get_pubkey(x509); | 551 | pkey = X509_get_pubkey(x509); |