summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/t_req.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/t_req.c')
-rw-r--r--src/lib/libcrypto/asn1/t_req.c22
1 files changed, 4 insertions, 18 deletions
diff --git a/src/lib/libcrypto/asn1/t_req.c b/src/lib/libcrypto/asn1/t_req.c
index 5557e06584..740cee80c0 100644
--- a/src/lib/libcrypto/asn1/t_req.c
+++ b/src/lib/libcrypto/asn1/t_req.c
@@ -63,12 +63,6 @@
63#include <openssl/objects.h> 63#include <openssl/objects.h>
64#include <openssl/x509.h> 64#include <openssl/x509.h>
65#include <openssl/x509v3.h> 65#include <openssl/x509v3.h>
66#ifndef OPENSSL_NO_RSA
67#include <openssl/rsa.h>
68#endif
69#ifndef OPENSSL_NO_DSA
70#include <openssl/dsa.h>
71#endif
72 66
73#ifndef OPENSSL_NO_FP_API 67#ifndef OPENSSL_NO_FP_API
74int X509_REQ_print_fp(FILE *fp, X509_REQ *x) 68int X509_REQ_print_fp(FILE *fp, X509_REQ *x)
@@ -166,14 +160,6 @@ int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags, unsigned long
166 } 160 }
167 else 161 else
168#endif 162#endif
169#ifndef OPENSSL_NO_EC
170 if (pkey->type == EVP_PKEY_EC)
171 {
172 BIO_printf(bp, "%12sEC Public Key: \n","");
173 EC_KEY_print(bp, pkey->pkey.ec, 16);
174 }
175 else
176#endif
177 BIO_printf(bp,"%12sUnknown Public Key:\n",""); 163 BIO_printf(bp,"%12sUnknown Public Key:\n","");
178 164
179 EVP_PKEY_free(pkey); 165 EVP_PKEY_free(pkey);
@@ -244,7 +230,7 @@ get_next:
244 } 230 }
245 } 231 }
246 } 232 }
247 if(!(cflag & X509_FLAG_NO_EXTENSIONS)) 233 if(!(cflag & X509_FLAG_NO_ATTRIBUTES))
248 { 234 {
249 exts = X509_REQ_get_extensions(x); 235 exts = X509_REQ_get_extensions(x);
250 if(exts) 236 if(exts)
@@ -260,9 +246,9 @@ get_next:
260 obj=X509_EXTENSION_get_object(ex); 246 obj=X509_EXTENSION_get_object(ex);
261 i2a_ASN1_OBJECT(bp,obj); 247 i2a_ASN1_OBJECT(bp,obj);
262 j=X509_EXTENSION_get_critical(ex); 248 j=X509_EXTENSION_get_critical(ex);
263 if (BIO_printf(bp,": %s\n",j?"critical":"") <= 0) 249 if (BIO_printf(bp,": %s\n",j?"critical":"","") <= 0)
264 goto err; 250 goto err;
265 if(!X509V3_EXT_print(bp, ex, cflag, 16)) 251 if(!X509V3_EXT_print(bp, ex, 0, 16))
266 { 252 {
267 BIO_printf(bp, "%16s", ""); 253 BIO_printf(bp, "%16s", "");
268 M_ASN1_OCTET_STRING_print(bp,ex->value); 254 M_ASN1_OCTET_STRING_print(bp,ex->value);
@@ -280,7 +266,7 @@ get_next:
280 266
281 return(1); 267 return(1);
282err: 268err:
283 X509err(X509_F_X509_REQ_PRINT_EX,ERR_R_BUF_LIB); 269 X509err(X509_F_X509_REQ_PRINT,ERR_R_BUF_LIB);
284 return(0); 270 return(0);
285 } 271 }
286 272