summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/t_spki.c
diff options
context:
space:
mode:
authortedu <>2014-04-18 00:58:49 +0000
committertedu <>2014-04-18 00:58:49 +0000
commita1df5b66c7ad477a535e56a504d8da47e1998cfa (patch)
treeb216ca6fba673789f2c494699c4cf41d23337bfa /src/lib/libcrypto/asn1/t_spki.c
parent07f5c09b19f56c323fa22ebd5efb5a4df9f5dc4d (diff)
downloadopenbsd-a1df5b66c7ad477a535e56a504d8da47e1998cfa.tar.gz
openbsd-a1df5b66c7ad477a535e56a504d8da47e1998cfa.tar.bz2
openbsd-a1df5b66c7ad477a535e56a504d8da47e1998cfa.zip
lob a few more knf grenades in here to soften things up.
Diffstat (limited to 'src/lib/libcrypto/asn1/t_spki.c')
-rw-r--r--src/lib/libcrypto/asn1/t_spki.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/asn1/t_spki.c b/src/lib/libcrypto/asn1/t_spki.c
index 016eb2fc2e..f135754535 100644
--- a/src/lib/libcrypto/asn1/t_spki.c
+++ b/src/lib/libcrypto/asn1/t_spki.c
@@ -81,9 +81,9 @@ int NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki)
81 BIO_printf(out," Public Key Algorithm: %s\n", 81 BIO_printf(out," Public Key Algorithm: %s\n",
82 (i == NID_undef)?"UNKNOWN":OBJ_nid2ln(i)); 82 (i == NID_undef)?"UNKNOWN":OBJ_nid2ln(i));
83 pkey = X509_PUBKEY_get(spki->spkac->pubkey); 83 pkey = X509_PUBKEY_get(spki->spkac->pubkey);
84 if(!pkey) BIO_printf(out, " Unable to load public key\n"); 84 if(!pkey)
85 else 85 BIO_printf(out, " Unable to load public key\n");
86 { 86 else {
87 EVP_PKEY_print_public(out, pkey, 4, NULL); 87 EVP_PKEY_print_public(out, pkey, 4, NULL);
88 EVP_PKEY_free(pkey); 88 EVP_PKEY_free(pkey);
89 } 89 }
@@ -96,9 +96,9 @@ int NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki)
96 96
97 n=spki->signature->length; 97 n=spki->signature->length;
98 s=(char *)spki->signature->data; 98 s=(char *)spki->signature->data;
99 for (i=0; i<n; i++) 99 for (i=0; i<n; i++) {
100 { 100 if ((i%18) == 0)
101 if ((i%18) == 0) BIO_write(out,"\n ",7); 101 BIO_write(out,"\n ",7);
102 BIO_printf(out,"%02x%s",(unsigned char)s[i], 102 BIO_printf(out,"%02x%s",(unsigned char)s[i],
103 ((i+1) == n)?"":":"); 103 ((i+1) == n)?"":":");
104 } 104 }