]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
EVP_CIPHER_type: fix misleading argument name
authorTomas Mraz <tomas@openssl.org>
Fri, 26 Mar 2021 16:53:59 +0000 (17:53 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 1 Apr 2021 12:39:53 +0000 (14:39 +0200)
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14703)

crypto/evp/evp_lib.c
doc/man3/EVP_EncryptInit.pod
include/openssl/evp.h

index 48bf99d1f58ae01746c0951e3be5e9824cc819bf..31d2a7392b3a90d6e510bc3ac92c254be0be1a78 100644 (file)
@@ -267,10 +267,10 @@ int evp_cipher_set_asn1_aead_params(EVP_CIPHER_CTX *c, ASN1_TYPE *type,
 #endif /* !defined(FIPS_MODULE) */
 
 /* Convert the various cipher NIDs and dummies to a proper OID NID */
-int EVP_CIPHER_type(const EVP_CIPHER *ctx)
+int EVP_CIPHER_type(const EVP_CIPHER *cipher)
 {
     int nid;
-    nid = EVP_CIPHER_nid(ctx);
+    nid = EVP_CIPHER_nid(cipher);
 
     switch (nid) {
 
index d2880b20f2c2f6acae72c105d6cec1d963591b34..9090dc8ad3c86e81e8fc6bfa9cdfca169b1e3a33 100644 (file)
@@ -149,7 +149,7 @@ EVP_CIPHER_do_all_provided
  int EVP_CIPHER_iv_length(const EVP_CIPHER *e);
  unsigned long EVP_CIPHER_flags(const EVP_CIPHER *e);
  unsigned long EVP_CIPHER_mode(const EVP_CIPHER *e);
- int EVP_CIPHER_type(const EVP_CIPHER *ctx);
+ int EVP_CIPHER_type(const EVP_CIPHER *cipher);
 
  const EVP_CIPHER *EVP_CIPHER_CTX_cipher(const EVP_CIPHER_CTX *ctx);
  int EVP_CIPHER_CTX_nid(const EVP_CIPHER_CTX *ctx);
index 4268f1020d7555f147fc62cfad8628f0c2d0f13a..7d1823dbacc3af0b538ea9e168854fac7c81ff1a 100644 (file)
@@ -1396,7 +1396,7 @@ int EVP_PKEY_set1_encoded_public_key(EVP_PKEY *pkey,
 
 size_t EVP_PKEY_get1_encoded_public_key(EVP_PKEY *pkey, unsigned char **ppub);
 
-int EVP_CIPHER_type(const EVP_CIPHER *ctx);
+int EVP_CIPHER_type(const EVP_CIPHER *cipher);
 
 /* calls methods */
 int EVP_CIPHER_param_to_asn1(EVP_CIPHER_CTX *c, ASN1_TYPE *type);