diff options
author | schwarze <> | 2023-08-25 12:37:33 +0000 |
---|---|---|
committer | schwarze <> | 2023-08-25 12:37:33 +0000 |
commit | b85d8476c405a45be47e5c1b7616f15b8f2f31a6 (patch) | |
tree | 85c857d80108baca0bc656ccbea65537c048cc79 | |
parent | e2a57b655c4b3eec8bbc5b212944e20daba3edd4 (diff) | |
download | openbsd-b85d8476c405a45be47e5c1b7616f15b8f2f31a6.tar.gz openbsd-b85d8476c405a45be47e5c1b7616f15b8f2f31a6.tar.bz2 openbsd-b85d8476c405a45be47e5c1b7616f15b8f2f31a6.zip |
KNF, no assembly change
OK tb@ jsing@
-rw-r--r-- | src/lib/libcrypto/bio/bio.h | 22 | ||||
-rw-r--r-- | src/lib/libcrypto/evp/evp.h | 12 |
2 files changed, 15 insertions, 19 deletions
diff --git a/src/lib/libcrypto/bio/bio.h b/src/lib/libcrypto/bio/bio.h index 8450780f69..b955524c45 100644 --- a/src/lib/libcrypto/bio/bio.h +++ b/src/lib/libcrypto/bio/bio.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio.h,v 1.59 2023/07/28 09:58:30 tb Exp $ */ | 1 | /* $OpenBSD: bio.h,v 1.60 2023/08/25 12:37:33 schwarze Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -524,9 +524,8 @@ int BIO_ctrl_reset_read_request(BIO *b); | |||
524 | /* void BIO_set_ex_free_func(BIO *bio,int idx,void (*cb)()); */ | 524 | /* void BIO_set_ex_free_func(BIO *bio,int idx,void (*cb)()); */ |
525 | int BIO_set_ex_data(BIO *bio, int idx, void *data); | 525 | int BIO_set_ex_data(BIO *bio, int idx, void *data); |
526 | void *BIO_get_ex_data(BIO *bio, int idx); | 526 | void *BIO_get_ex_data(BIO *bio, int idx); |
527 | int | 527 | int BIO_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, |
528 | BIO_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, | 528 | CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func); |
529 | CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func); | ||
530 | unsigned long BIO_number_read(BIO *bio); | 529 | unsigned long BIO_number_read(BIO *bio); |
531 | unsigned long BIO_number_written(BIO *bio); | 530 | unsigned long BIO_number_written(BIO *bio); |
532 | 531 | ||
@@ -600,12 +599,10 @@ int BIO_dgram_non_fatal_error(int _error); | |||
600 | 599 | ||
601 | int BIO_fd_should_retry(int i); | 600 | int BIO_fd_should_retry(int i); |
602 | int BIO_fd_non_fatal_error(int _error); | 601 | int BIO_fd_non_fatal_error(int _error); |
603 | int | 602 | int BIO_dump_cb(int (*cb)(const void *data, size_t len, void *u), |
604 | BIO_dump_cb(int (*cb)(const void *data, size_t len, void *u), | 603 | void *u, const char *s, int len); |
605 | void *u, const char *s, int len); | 604 | int BIO_dump_indent_cb(int (*cb)(const void *data, size_t len, void *u), |
606 | int | 605 | void *u, const char *s, int len, int indent); |
607 | BIO_dump_indent_cb(int (*cb)(const void *data, size_t len, void *u), | ||
608 | void *u, const char *s, int len, int indent); | ||
609 | int BIO_dump(BIO *b, const char *bytes, int len); | 606 | int BIO_dump(BIO *b, const char *bytes, int len); |
610 | int BIO_dump_indent(BIO *b, const char *bytes, int len, int indent); | 607 | int BIO_dump_indent(BIO *b, const char *bytes, int len, int indent); |
611 | int BIO_dump_fp(FILE *fp, const char *s, int len); | 608 | int BIO_dump_fp(FILE *fp, const char *s, int len); |
@@ -636,9 +633,8 @@ BIO *BIO_new_fd(int fd, int close_flag); | |||
636 | BIO *BIO_new_connect(const char *host_port); | 633 | BIO *BIO_new_connect(const char *host_port); |
637 | BIO *BIO_new_accept(const char *host_port); | 634 | BIO *BIO_new_accept(const char *host_port); |
638 | 635 | ||
639 | int | 636 | int BIO_new_bio_pair(BIO **bio1, size_t writebuf1, |
640 | BIO_new_bio_pair(BIO **bio1, size_t writebuf1, | 637 | BIO **bio2, size_t writebuf2); |
641 | BIO **bio2, size_t writebuf2); | ||
642 | /* If successful, returns 1 and in *bio1, *bio2 two BIO pair endpoints. | 638 | /* If successful, returns 1 and in *bio1, *bio2 two BIO pair endpoints. |
643 | * Otherwise returns 0 and sets *bio1 and *bio2 to NULL. | 639 | * Otherwise returns 0 and sets *bio1 and *bio2 to NULL. |
644 | * Size 0 uses default value. | 640 | * Size 0 uses default value. |
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index fa1a98d1a3..381098b96b 100644 --- a/src/lib/libcrypto/evp/evp.h +++ b/src/lib/libcrypto/evp/evp.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: evp.h,v 1.118 2023/04/25 18:39:12 tb Exp $ */ | 1 | /* $OpenBSD: evp.h,v 1.119 2023/08/25 12:37:33 schwarze Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -310,7 +310,7 @@ typedef struct evp_cipher_info_st { | |||
310 | } EVP_CIPHER_INFO; | 310 | } EVP_CIPHER_INFO; |
311 | 311 | ||
312 | /* Password based encryption function */ | 312 | /* Password based encryption function */ |
313 | typedef int (EVP_PBE_KEYGEN)(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, | 313 | typedef int EVP_PBE_KEYGEN(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, |
314 | ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de); | 314 | ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de); |
315 | 315 | ||
316 | #ifndef OPENSSL_NO_RSA | 316 | #ifndef OPENSSL_NO_RSA |
@@ -925,7 +925,7 @@ int PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, | |||
925 | 925 | ||
926 | void PKCS5_PBE_add(void); | 926 | void PKCS5_PBE_add(void); |
927 | 927 | ||
928 | int EVP_PBE_CipherInit (ASN1_OBJECT *pbe_obj, const char *pass, int passlen, | 928 | int EVP_PBE_CipherInit(ASN1_OBJECT *pbe_obj, const char *pass, int passlen, |
929 | ASN1_TYPE *param, EVP_CIPHER_CTX *ctx, int en_de); | 929 | ASN1_TYPE *param, EVP_CIPHER_CTX *ctx, int en_de); |
930 | 930 | ||
931 | /* PBE type */ | 931 | /* PBE type */ |
@@ -965,8 +965,8 @@ int EVP_PKEY_asn1_get0_info(int *ppkey_id, int *pkey_base_id, int *ppkey_flags, | |||
965 | const char **pinfo, const char **ppem_str, | 965 | const char **pinfo, const char **ppem_str, |
966 | const EVP_PKEY_ASN1_METHOD *ameth); | 966 | const EVP_PKEY_ASN1_METHOD *ameth); |
967 | 967 | ||
968 | const EVP_PKEY_ASN1_METHOD* EVP_PKEY_get0_asn1(const EVP_PKEY *pkey); | 968 | const EVP_PKEY_ASN1_METHOD *EVP_PKEY_get0_asn1(const EVP_PKEY *pkey); |
969 | EVP_PKEY_ASN1_METHOD* EVP_PKEY_asn1_new(int id, int flags, const char *pem_str, | 969 | EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_new(int id, int flags, const char *pem_str, |
970 | const char *info); | 970 | const char *info); |
971 | void EVP_PKEY_asn1_copy(EVP_PKEY_ASN1_METHOD *dst, | 971 | void EVP_PKEY_asn1_copy(EVP_PKEY_ASN1_METHOD *dst, |
972 | const EVP_PKEY_ASN1_METHOD *src); | 972 | const EVP_PKEY_ASN1_METHOD *src); |
@@ -1073,7 +1073,7 @@ void EVP_PKEY_asn1_set_param_check(EVP_PKEY_ASN1_METHOD *ameth, | |||
1073 | #define EVP_PKEY_FLAG_SIGCTX_CUSTOM 4 | 1073 | #define EVP_PKEY_FLAG_SIGCTX_CUSTOM 4 |
1074 | 1074 | ||
1075 | const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); | 1075 | const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); |
1076 | EVP_PKEY_METHOD* EVP_PKEY_meth_new(int id, int flags); | 1076 | EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); |
1077 | void EVP_PKEY_meth_get0_info(int *ppkey_id, int *pflags, | 1077 | void EVP_PKEY_meth_get0_info(int *ppkey_id, int *pflags, |
1078 | const EVP_PKEY_METHOD *meth); | 1078 | const EVP_PKEY_METHOD *meth); |
1079 | void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, const EVP_PKEY_METHOD *src); | 1079 | void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, const EVP_PKEY_METHOD *src); |