diff options
| author | jsing <> | 2015-07-27 12:53:56 +0000 |
|---|---|---|
| committer | jsing <> | 2015-07-27 12:53:56 +0000 |
| commit | a0676f8c3cae178ba666f10f56e6bcc1d15ebb8c (patch) | |
| tree | d56e8267ff28e543b025978829452f2aebf58b12 /src/lib/libssl | |
| parent | 44eb2446b87d3d5408bf89f6eb5a7ac5e64f228d (diff) | |
| download | openbsd-a0676f8c3cae178ba666f10f56e6bcc1d15ebb8c.tar.gz openbsd-a0676f8c3cae178ba666f10f56e6bcc1d15ebb8c.tar.bz2 openbsd-a0676f8c3cae178ba666f10f56e6bcc1d15ebb8c.zip | |
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 'src/lib/libssl')
| -rw-r--r-- | src/lib/libssl/src/crypto/asn1/asn1_lib.c | 3 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/asn1/x_pkey.c | 12 |
2 files changed, 5 insertions, 10 deletions
diff --git a/src/lib/libssl/src/crypto/asn1/asn1_lib.c b/src/lib/libssl/src/crypto/asn1/asn1_lib.c index 7a11fa9cbc..383d604e60 100644 --- a/src/lib/libssl/src/crypto/asn1/asn1_lib.c +++ b/src/lib/libssl/src/crypto/asn1/asn1_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: asn1_lib.c,v 1.34 2015/02/07 22:30:25 miod Exp $ */ | 1 | /* $OpenBSD: asn1_lib.c,v 1.35 2015/07/27 12:53:56 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 | * |
| @@ -61,7 +61,6 @@ | |||
| 61 | #include <string.h> | 61 | #include <string.h> |
| 62 | 62 | ||
| 63 | #include <openssl/asn1.h> | 63 | #include <openssl/asn1.h> |
| 64 | #include <openssl/asn1_mac.h> | ||
| 65 | #include <openssl/err.h> | 64 | #include <openssl/err.h> |
| 66 | 65 | ||
| 67 | static int asn1_get_length(const unsigned char **pp, int *inf, long *rl, int max); | 66 | static int asn1_get_length(const unsigned char **pp, int *inf, long *rl, int max); |
diff --git a/src/lib/libssl/src/crypto/asn1/x_pkey.c b/src/lib/libssl/src/crypto/asn1/x_pkey.c index e421edbe8d..28e79858b5 100644 --- a/src/lib/libssl/src/crypto/asn1/x_pkey.c +++ b/src/lib/libssl/src/crypto/asn1/x_pkey.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x_pkey.c,v 1.17 2015/07/20 15:27:00 miod Exp $ */ | 1 | /* $OpenBSD: x_pkey.c,v 1.18 2015/07/27 12:53:56 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 | * |
| @@ -59,7 +59,6 @@ | |||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | #include <string.h> | 60 | #include <string.h> |
| 61 | 61 | ||
| 62 | #include <openssl/asn1_mac.h> | ||
| 63 | #include <openssl/err.h> | 62 | #include <openssl/err.h> |
| 64 | #include <openssl/evp.h> | 63 | #include <openssl/evp.h> |
| 65 | #include <openssl/objects.h> | 64 | #include <openssl/objects.h> |
| @@ -71,19 +70,16 @@ X509_PKEY_new(void) | |||
| 71 | X509_PKEY *ret = NULL; | 70 | X509_PKEY *ret = NULL; |
| 72 | 71 | ||
| 73 | if ((ret = malloc(sizeof(X509_PKEY))) == NULL) { | 72 | if ((ret = malloc(sizeof(X509_PKEY))) == NULL) { |
| 74 | ASN1_MAC_H_err(ASN1_F_X509_PKEY_NEW, ERR_R_MALLOC_FAILURE, | 73 | ASN1err(ASN1_F_X509_PKEY_NEW, ERR_R_MALLOC_FAILURE); |
| 75 | __LINE__); | ||
| 76 | goto err; | 74 | goto err; |
| 77 | } | 75 | } |
| 78 | ret->version = 0; | 76 | ret->version = 0; |
| 79 | if ((ret->enc_algor = X509_ALGOR_new()) == NULL) { | 77 | if ((ret->enc_algor = X509_ALGOR_new()) == NULL) { |
| 80 | ASN1_MAC_H_err(ASN1_F_X509_PKEY_NEW, ERR_R_MALLOC_FAILURE, | 78 | ASN1err(ASN1_F_X509_PKEY_NEW, ERR_R_MALLOC_FAILURE); |
| 81 | __LINE__); | ||
| 82 | goto err; | 79 | goto err; |
| 83 | } | 80 | } |
| 84 | if ((ret->enc_pkey = M_ASN1_OCTET_STRING_new()) == NULL) { | 81 | if ((ret->enc_pkey = M_ASN1_OCTET_STRING_new()) == NULL) { |
| 85 | ASN1_MAC_H_err(ASN1_F_X509_PKEY_NEW, ERR_R_MALLOC_FAILURE, | 82 | ASN1err(ASN1_F_X509_PKEY_NEW, ERR_R_MALLOC_FAILURE); |
| 86 | __LINE__); | ||
| 87 | goto err; | 83 | goto err; |
| 88 | } | 84 | } |
| 89 | ret->dec_pkey = NULL; | 85 | ret->dec_pkey = NULL; |
