projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
crypto/bn/asm/rsaz-x86_64.pl: make it work on Win64.
[openssl.git]
/
crypto
/
x509v3
/
v3_prn.c
diff --git
a/crypto/x509v3/v3_prn.c
b/crypto/x509v3/v3_prn.c
index 754808b6257c02e1d2878e12cdb316c4eddef9a4..31462187081bfaafa5360d48347c7247256a313f 100644
(file)
--- a/
crypto/x509v3/v3_prn.c
+++ b/
crypto/x509v3/v3_prn.c
@@
-1,5
+1,5
@@
/* v3_prn.c */
/* v3_prn.c */
-/* Written by Dr Stephen N Henson (s
henson@bigfoot.com
) for the OpenSSL
+/* Written by Dr Stephen N Henson (s
teve@openssl.org
) for the OpenSSL
* project 1999.
*/
/* ====================================================================
* project 1999.
*/
/* ====================================================================
@@
-109,10
+109,11
@@
int X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, unsigned long flag, int inde
{
void *ext_str = NULL;
char *value = NULL;
{
void *ext_str = NULL;
char *value = NULL;
- unsigned char *p;
- X509V3_EXT_METHOD *method;
+
const
unsigned char *p;
+ const X509V3_EXT_METHOD *method;
STACK_OF(CONF_VALUE) *nval = NULL;
int ok = 1;
STACK_OF(CONF_VALUE) *nval = NULL;
int ok = 1;
+
if(!(method = X509V3_EXT_get(ext)))
return unknown_ext_print(out, ext, flag, indent, 0);
p = ext->value->data;
if(!(method = X509V3_EXT_get(ext)))
return unknown_ext_print(out, ext, flag, indent, 0);
p = ext->value->data;
@@
-182,9
+183,9
@@
int X509V3_extensions_print(BIO *bp, char *title, STACK_OF(X509_EXTENSION) *exts
obj=X509_EXTENSION_get_object(ex);
i2a_ASN1_OBJECT(bp,obj);
j=X509_EXTENSION_get_critical(ex);
obj=X509_EXTENSION_get_object(ex);
i2a_ASN1_OBJECT(bp,obj);
j=X509_EXTENSION_get_critical(ex);
- if (BIO_printf(bp,": %s\n",j?"critical":""
,""
) <= 0)
+ if (BIO_printf(bp,": %s\n",j?"critical":"") <= 0)
return 0;
return 0;
- if(!X509V3_EXT_print(bp, ex, flag,
12
))
+ if(!X509V3_EXT_print(bp, ex, flag,
indent + 4
))
{
BIO_printf(bp, "%*s", indent + 4, "");
M_ASN1_OCTET_STRING_print(bp,ex->value);
{
BIO_printf(bp, "%*s", indent + 4, "");
M_ASN1_OCTET_STRING_print(bp,ex->value);