diff options
| author | tb <> | 2022-05-07 10:31:28 +0000 |
|---|---|---|
| committer | tb <> | 2022-05-07 10:31:28 +0000 |
| commit | fd750590011f2810bf0cb5a75c187f9853b87b0c (patch) | |
| tree | f877eb9d41f985d2a6df447c72b3e0d564770a6a /src | |
| parent | 1b5a4a55177d2c3b1d4abcdecc12c37721f6bfc5 (diff) | |
| download | openbsd-fd750590011f2810bf0cb5a75c187f9853b87b0c.tar.gz openbsd-fd750590011f2810bf0cb5a75c187f9853b87b0c.tar.bz2 openbsd-fd750590011f2810bf0cb5a75c187f9853b87b0c.zip | |
KNF nits
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/dsa/dsa_ameth.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_ameth.c b/src/lib/libcrypto/dsa/dsa_ameth.c index 9b8f09d969..0af17dbbe6 100644 --- a/src/lib/libcrypto/dsa/dsa_ameth.c +++ b/src/lib/libcrypto/dsa/dsa_ameth.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dsa_ameth.c,v 1.35 2022/04/07 17:38:24 tb Exp $ */ | 1 | /* $OpenBSD: dsa_ameth.c,v 1.36 2022/05/07 10:31:28 tb Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2006. | 3 | * project 2006. |
| 4 | */ | 4 | */ |
| @@ -10,7 +10,7 @@ | |||
| 10 | * are met: | 10 | * are met: |
| 11 | * | 11 | * |
| 12 | * 1. Redistributions of source code must retain the above copyright | 12 | * 1. Redistributions of source code must retain the above copyright |
| 13 | * notice, this list of conditions and the following disclaimer. | 13 | * notice, this list of conditions and the following disclaimer. |
| 14 | * | 14 | * |
| 15 | * 2. Redistributions in binary form must reproduce the above copyright | 15 | * 2. Redistributions in binary form must reproduce the above copyright |
| 16 | * notice, this list of conditions and the following disclaimer in | 16 | * notice, this list of conditions and the following disclaimer in |
| @@ -90,7 +90,7 @@ dsa_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) | |||
| 90 | X509_ALGOR_get0(NULL, &ptype, &pval, palg); | 90 | X509_ALGOR_get0(NULL, &ptype, &pval, palg); |
| 91 | 91 | ||
| 92 | if (ptype == V_ASN1_SEQUENCE) { | 92 | if (ptype == V_ASN1_SEQUENCE) { |
| 93 | pstr = pval; | 93 | pstr = pval; |
| 94 | pm = pstr->data; | 94 | pm = pstr->data; |
| 95 | pmlen = pstr->length; | 95 | pmlen = pstr->length; |
| 96 | 96 | ||
| @@ -102,13 +102,13 @@ dsa_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) | |||
| 102 | if (!(dsa = DSA_new())) { | 102 | if (!(dsa = DSA_new())) { |
| 103 | DSAerror(ERR_R_MALLOC_FAILURE); | 103 | DSAerror(ERR_R_MALLOC_FAILURE); |
| 104 | goto err; | 104 | goto err; |
| 105 | } | 105 | } |
| 106 | } else { | 106 | } else { |
| 107 | DSAerror(DSA_R_PARAMETER_ENCODING_ERROR); | 107 | DSAerror(DSA_R_PARAMETER_ENCODING_ERROR); |
| 108 | goto err; | 108 | goto err; |
| 109 | } | 109 | } |
| 110 | 110 | ||
| 111 | if (!(public_key=d2i_ASN1_INTEGER(NULL, &p, pklen))) { | 111 | if (!(public_key = d2i_ASN1_INTEGER(NULL, &p, pklen))) { |
| 112 | DSAerror(DSA_R_DECODE_ERROR); | 112 | DSAerror(DSA_R_DECODE_ERROR); |
| 113 | goto err; | 113 | goto err; |
| 114 | } | 114 | } |
| @@ -434,7 +434,7 @@ do_dsa_print(BIO *bp, const DSA *x, int off, int ptype) | |||
| 434 | ret = 1; | 434 | ret = 1; |
| 435 | err: | 435 | err: |
| 436 | free(m); | 436 | free(m); |
| 437 | return(ret); | 437 | return ret; |
| 438 | } | 438 | } |
| 439 | 439 | ||
| 440 | static int | 440 | static int |
| @@ -633,7 +633,7 @@ dsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) | |||
| 633 | return -1; | 633 | return -1; |
| 634 | if (!OBJ_find_sigid_by_algs(&snid, hnid, | 634 | if (!OBJ_find_sigid_by_algs(&snid, hnid, |
| 635 | EVP_PKEY_id(pkey))) | 635 | EVP_PKEY_id(pkey))) |
| 636 | return -1; | 636 | return -1; |
| 637 | X509_ALGOR_set0(alg2, OBJ_nid2obj(snid), V_ASN1_UNDEF, | 637 | X509_ALGOR_set0(alg2, OBJ_nid2obj(snid), V_ASN1_UNDEF, |
| 638 | 0); | 638 | 0); |
| 639 | } | 639 | } |
