diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-04-18 00:10:09 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-04-18 00:10:09 +0000 |
commit | 354af17288498026713696092004d5f870122d20 (patch) | |
tree | 14b371c2dae140eed5d11a2d973e5fde869d59b1 /lib/libcrypto/asn1/a_print.c | |
parent | eb74fae5997a015328501cbe38bdcaaca56a4eaa (diff) |
putting most of the braces in the right column is the very least we can do.
Diffstat (limited to 'lib/libcrypto/asn1/a_print.c')
-rw-r--r-- | lib/libcrypto/asn1/a_print.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/libcrypto/asn1/a_print.c b/lib/libcrypto/asn1/a_print.c index 9eec5034e1a..cfd0452f13a 100644 --- a/lib/libcrypto/asn1/a_print.c +++ b/lib/libcrypto/asn1/a_print.c @@ -61,7 +61,7 @@ #include <openssl/asn1.h> int ASN1_PRINTABLE_type(const unsigned char *s, int len) - { +{ int c; int ia5=0; int t61=0; @@ -70,7 +70,7 @@ int ASN1_PRINTABLE_type(const unsigned char *s, int len) if (s == NULL) return(V_ASN1_PRINTABLESTRING); while ((*s) && (len-- != 0)) - { + { c= *(s++); if (!( ((c >= 'a') && (c <= 'z')) || ((c >= 'A') && (c <= 'Z')) || @@ -85,14 +85,14 @@ int ASN1_PRINTABLE_type(const unsigned char *s, int len) ia5=1; if (c&0x80) t61=1; - } + } if (t61) return(V_ASN1_T61STRING); if (ia5) return(V_ASN1_IA5STRING); return(V_ASN1_PRINTABLESTRING); - } +} int ASN1_UNIVERSALSTRING_to_string(ASN1_UNIVERSALSTRING *s) - { +{ int i; unsigned char *p; @@ -100,20 +100,20 @@ int ASN1_UNIVERSALSTRING_to_string(ASN1_UNIVERSALSTRING *s) if ((s->length%4) != 0) return(0); p=s->data; for (i=0; i<s->length; i+=4) - { + { if ((p[0] != '\0') || (p[1] != '\0') || (p[2] != '\0')) break; else p+=4; - } + } if (i < s->length) return(0); p=s->data; for (i=3; i<s->length; i+=4) - { + { *(p++)=s->data[i]; - } + } *(p)='\0'; s->length/=4; s->type=ASN1_PRINTABLE_type(s->data,s->length); return(1); - } +} |