summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2024-03-26 05:39:47 +0000
committertb <>2024-03-26 05:39:47 +0000
commitab4e5821937996e75dde9e321b00b070bcb895fe (patch)
tree057a176547b4ac6aed61bb2055fda80c9e557ebc
parent55b0e6a268660db3dd97c93e5ffa45e7f3f4ffd3 (diff)
downloadopenbsd-ab4e5821937996e75dde9e321b00b070bcb895fe.tar.gz
openbsd-ab4e5821937996e75dde9e321b00b070bcb895fe.tar.bz2
openbsd-ab4e5821937996e75dde9e321b00b070bcb895fe.zip
PKCS5_pbe2_set_iv() can be local to p5_pbev2
quoth the muppet "yes I know this is horrible!"
-rw-r--r--src/lib/libcrypto/asn1/p5_pbev2.c5
-rw-r--r--src/lib/libcrypto/x509/x509_local.h4
2 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/libcrypto/asn1/p5_pbev2.c b/src/lib/libcrypto/asn1/p5_pbev2.c
index ebb20c296f..bed85fca7f 100644
--- a/src/lib/libcrypto/asn1/p5_pbev2.c
+++ b/src/lib/libcrypto/asn1/p5_pbev2.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: p5_pbev2.c,v 1.32 2024/03/02 10:17:37 tb Exp $ */ 1/* $OpenBSD: p5_pbev2.c,v 1.33 2024/03/26 05:39:47 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 1999-2004. 3 * project 1999-2004.
4 */ 4 */
@@ -65,7 +65,6 @@
65#include <openssl/x509.h> 65#include <openssl/x509.h>
66 66
67#include "evp_local.h" 67#include "evp_local.h"
68#include "x509_local.h"
69 68
70/* PKCS#5 v2.0 password based encryption structures */ 69/* PKCS#5 v2.0 password based encryption structures */
71 70
@@ -183,7 +182,7 @@ PBKDF2PARAM_free(PBKDF2PARAM *a)
183 * Extended version to allow application supplied PRF NID and IV. 182 * Extended version to allow application supplied PRF NID and IV.
184 */ 183 */
185 184
186X509_ALGOR * 185static X509_ALGOR *
187PKCS5_pbe2_set_iv(const EVP_CIPHER *cipher, int iter, unsigned char *salt, 186PKCS5_pbe2_set_iv(const EVP_CIPHER *cipher, int iter, unsigned char *salt,
188 int saltlen, unsigned char *aiv, int prf_nid) 187 int saltlen, unsigned char *aiv, int prf_nid)
189{ 188{
diff --git a/src/lib/libcrypto/x509/x509_local.h b/src/lib/libcrypto/x509/x509_local.h
index 83b57403d0..73cc582d7b 100644
--- a/src/lib/libcrypto/x509/x509_local.h
+++ b/src/lib/libcrypto/x509/x509_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_local.h,v 1.22 2024/03/02 10:52:24 tb Exp $ */ 1/* $OpenBSD: x509_local.h,v 1.23 2024/03/26 05:39:47 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 2013. 3 * project 2013.
4 */ 4 */
@@ -404,8 +404,6 @@ int PKCS5_pbe_set0_algor(X509_ALGOR *algor, int alg, int iter,
404 const unsigned char *salt, int saltlen); 404 const unsigned char *salt, int saltlen);
405X509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter, 405X509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter,
406 unsigned char *salt, int saltlen); 406 unsigned char *salt, int saltlen);
407X509_ALGOR *PKCS5_pbe2_set_iv(const EVP_CIPHER *cipher, int iter,
408 unsigned char *salt, int saltlen, unsigned char *aiv, int prf_nid);
409X509_ALGOR *PKCS5_pbe_set(int alg, int iter, const unsigned char *salt, 407X509_ALGOR *PKCS5_pbe_set(int alg, int iter, const unsigned char *salt,
410 int saltlen); 408 int saltlen);
411X509_ALGOR *PKCS5_pbkdf2_set(int iter, unsigned char *salt, int saltlen, 409X509_ALGOR *PKCS5_pbkdf2_set(int iter, unsigned char *salt, int saltlen,