diff options
Diffstat (limited to 'src/lib/libcrypto/pkcs7/pk7_lib.c')
-rw-r--r-- | src/lib/libcrypto/pkcs7/pk7_lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/libcrypto/pkcs7/pk7_lib.c b/src/lib/libcrypto/pkcs7/pk7_lib.c index d411269b50..3ca0952792 100644 --- a/src/lib/libcrypto/pkcs7/pk7_lib.c +++ b/src/lib/libcrypto/pkcs7/pk7_lib.c | |||
@@ -591,6 +591,7 @@ X509 *PKCS7_cert_from_signer_info(PKCS7 *p7, PKCS7_SIGNER_INFO *si) | |||
591 | int PKCS7_set_cipher(PKCS7 *p7, const EVP_CIPHER *cipher) | 591 | int PKCS7_set_cipher(PKCS7 *p7, const EVP_CIPHER *cipher) |
592 | { | 592 | { |
593 | int i; | 593 | int i; |
594 | ASN1_OBJECT *objtmp; | ||
594 | PKCS7_ENC_CONTENT *ec; | 595 | PKCS7_ENC_CONTENT *ec; |
595 | 596 | ||
596 | i=OBJ_obj2nid(p7->type); | 597 | i=OBJ_obj2nid(p7->type); |
@@ -613,6 +614,7 @@ int PKCS7_set_cipher(PKCS7 *p7, const EVP_CIPHER *cipher) | |||
613 | PKCS7err(PKCS7_F_PKCS7_SET_CIPHER,PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER); | 614 | PKCS7err(PKCS7_F_PKCS7_SET_CIPHER,PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER); |
614 | return(0); | 615 | return(0); |
615 | } | 616 | } |
617 | objtmp = OBJ_nid2obj(i); | ||
616 | 618 | ||
617 | ec->cipher = cipher; | 619 | ec->cipher = cipher; |
618 | return 1; | 620 | return 1; |