diff options
author | 2014-04-18 00:58:49 +0000 | |
---|---|---|
committer | 2014-04-18 00:58:49 +0000 | |
commit | cc777fd461408b419899a04c31acaa3ed6dc4816 (patch) | |
tree | 0b9fb1d1f27465d1b71ccff3ce743eb4b868f7f8 /lib/libcrypto/asn1/x_algor.c | |
parent | putting most of the braces in the right column is the very least we can do. (diff) | |
download | wireguard-openbsd-cc777fd461408b419899a04c31acaa3ed6dc4816.tar.xz wireguard-openbsd-cc777fd461408b419899a04c31acaa3ed6dc4816.zip |
lob a few more knf grenades in here to soften things up.
Diffstat (limited to 'lib/libcrypto/asn1/x_algor.c')
-rw-r--r-- | lib/libcrypto/asn1/x_algor.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/lib/libcrypto/asn1/x_algor.c b/lib/libcrypto/asn1/x_algor.c index 6f6fbb112a5..7ae473485c1 100644 --- a/lib/libcrypto/asn1/x_algor.c +++ b/lib/libcrypto/asn1/x_algor.c @@ -81,25 +81,21 @@ int X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype, void *pval) { if (!alg) return 0; - if (ptype != V_ASN1_UNDEF) - { + if (ptype != V_ASN1_UNDEF) { if (alg->parameter == NULL) alg->parameter = ASN1_TYPE_new(); if (alg->parameter == NULL) return 0; } - if (alg) - { + if (alg) { if (alg->algorithm) ASN1_OBJECT_free(alg->algorithm); alg->algorithm = aobj; } if (ptype == 0) return 1; - if (ptype == V_ASN1_UNDEF) - { - if (alg->parameter) - { + if (ptype == V_ASN1_UNDEF) { + if (alg->parameter) { ASN1_TYPE_free(alg->parameter); alg->parameter = NULL; } @@ -114,10 +110,8 @@ void X509_ALGOR_get0(ASN1_OBJECT **paobj, int *pptype, void **ppval, { if (paobj) *paobj = algor->algorithm; - if (pptype) - { - if (algor->parameter == NULL) - { + if (pptype) { + if (algor->parameter == NULL) { *pptype = V_ASN1_UNDEF; return; } |