summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/x_info.c
diff options
context:
space:
mode:
authortedu <>2014-04-18 00:10:08 +0000
committertedu <>2014-04-18 00:10:08 +0000
commit07f5c09b19f56c323fa22ebd5efb5a4df9f5dc4d (patch)
tree6327d50d69a1982f840dc68fe928ea459e2c41e0 /src/lib/libcrypto/asn1/x_info.c
parent288a9e368d9d4a72792b12a00ad69e3592d94073 (diff)
downloadopenbsd-07f5c09b19f56c323fa22ebd5efb5a4df9f5dc4d.tar.gz
openbsd-07f5c09b19f56c323fa22ebd5efb5a4df9f5dc4d.tar.bz2
openbsd-07f5c09b19f56c323fa22ebd5efb5a4df9f5dc4d.zip
putting most of the braces in the right column is the very least we can do.
Diffstat (limited to 'src/lib/libcrypto/asn1/x_info.c')
-rw-r--r--src/lib/libcrypto/asn1/x_info.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/asn1/x_info.c b/src/lib/libcrypto/asn1/x_info.c
index cb5b6634a1..c1b6058d58 100644
--- a/src/lib/libcrypto/asn1/x_info.c
+++ b/src/lib/libcrypto/asn1/x_info.c
@@ -63,15 +63,15 @@
63#include <openssl/x509.h> 63#include <openssl/x509.h>
64 64
65X509_INFO *X509_INFO_new(void) 65X509_INFO *X509_INFO_new(void)
66 { 66{
67 X509_INFO *ret=NULL; 67 X509_INFO *ret=NULL;
68 68
69 ret=(X509_INFO *)malloc(sizeof(X509_INFO)); 69 ret=(X509_INFO *)malloc(sizeof(X509_INFO));
70 if (ret == NULL) 70 if (ret == NULL)
71 { 71 {
72 ASN1err(ASN1_F_X509_INFO_NEW,ERR_R_MALLOC_FAILURE); 72 ASN1err(ASN1_F_X509_INFO_NEW,ERR_R_MALLOC_FAILURE);
73 return(NULL); 73 return(NULL);
74 } 74 }
75 75
76 ret->enc_cipher.cipher=NULL; 76 ret->enc_cipher.cipher=NULL;
77 ret->enc_len=0; 77 ret->enc_len=0;
@@ -82,10 +82,10 @@ X509_INFO *X509_INFO_new(void)
82 ret->crl=NULL; 82 ret->crl=NULL;
83 ret->x_pkey=NULL; 83 ret->x_pkey=NULL;
84 return(ret); 84 return(ret);
85 } 85}
86 86
87void X509_INFO_free(X509_INFO *x) 87void X509_INFO_free(X509_INFO *x)
88 { 88{
89 int i; 89 int i;
90 90
91 if (x == NULL) return; 91 if (x == NULL) return;
@@ -98,7 +98,7 @@ void X509_INFO_free(X509_INFO *x)
98 if (x->x_pkey != NULL) X509_PKEY_free(x->x_pkey); 98 if (x->x_pkey != NULL) X509_PKEY_free(x->x_pkey);
99 if (x->enc_data != NULL) free(x->enc_data); 99 if (x->enc_data != NULL) free(x->enc_data);
100 free(x); 100 free(x);
101 } 101}
102 102
103IMPLEMENT_STACK_OF(X509_INFO) 103IMPLEMENT_STACK_OF(X509_INFO)
104 104