diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2015-07-27 12:53:57 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2015-07-27 12:53:57 +0000 |
commit | 0107343071c1e060148ba382d11f1ae9013b0436 (patch) | |
tree | 41bf897561093eb2fccc70d9342c22c1638e1381 /lib | |
parent | 440b101242680408b7b0b5af69bf898a31c4372b (diff) |
Less asn1_mac.h - asn1_lib.c does not need it and x_pkey.c should be
using ASN1err() instead of ASN1_MAC_H_err().
ok miod@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/asn1/asn1_lib.c | 3 | ||||
-rw-r--r-- | lib/libcrypto/asn1/x_pkey.c | 12 |
2 files changed, 5 insertions, 10 deletions
diff --git a/lib/libcrypto/asn1/asn1_lib.c b/lib/libcrypto/asn1/asn1_lib.c index 7a11fa9cbcb..383d604e605 100644 --- a/lib/libcrypto/asn1/asn1_lib.c +++ b/lib/libcrypto/asn1/asn1_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asn1_lib.c,v 1.34 2015/02/07 22:30:25 miod Exp $ */ +/* $OpenBSD: asn1_lib.c,v 1.35 2015/07/27 12:53:56 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -61,7 +61,6 @@ #include <string.h> #include <openssl/asn1.h> -#include <openssl/asn1_mac.h> #include <openssl/err.h> static int asn1_get_length(const unsigned char **pp, int *inf, long *rl, int max); diff --git a/lib/libcrypto/asn1/x_pkey.c b/lib/libcrypto/asn1/x_pkey.c index e421edbe8d3..28e79858b5f 100644 --- a/lib/libcrypto/asn1/x_pkey.c +++ b/lib/libcrypto/asn1/x_pkey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x_pkey.c,v 1.17 2015/07/20 15:27:00 miod Exp $ */ +/* $OpenBSD: x_pkey.c,v 1.18 2015/07/27 12:53:56 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -59,7 +59,6 @@ #include <stdio.h> #include <string.h> -#include <openssl/asn1_mac.h> #include <openssl/err.h> #include <openssl/evp.h> #include <openssl/objects.h> @@ -71,19 +70,16 @@ X509_PKEY_new(void) X509_PKEY *ret = NULL; if ((ret = malloc(sizeof(X509_PKEY))) == NULL) { - ASN1_MAC_H_err(ASN1_F_X509_PKEY_NEW, ERR_R_MALLOC_FAILURE, - __LINE__); + ASN1err(ASN1_F_X509_PKEY_NEW, ERR_R_MALLOC_FAILURE); goto err; } ret->version = 0; if ((ret->enc_algor = X509_ALGOR_new()) == NULL) { - ASN1_MAC_H_err(ASN1_F_X509_PKEY_NEW, ERR_R_MALLOC_FAILURE, - __LINE__); + ASN1err(ASN1_F_X509_PKEY_NEW, ERR_R_MALLOC_FAILURE); goto err; } if ((ret->enc_pkey = M_ASN1_OCTET_STRING_new()) == NULL) { - ASN1_MAC_H_err(ASN1_F_X509_PKEY_NEW, ERR_R_MALLOC_FAILURE, - __LINE__); + ASN1err(ASN1_F_X509_PKEY_NEW, ERR_R_MALLOC_FAILURE); goto err; } ret->dec_pkey = NULL; |