Fix function signature error
authorPW Hu <jlu.hpw@foxmail.com>
Mon, 18 Oct 2021 08:49:14 +0000 (16:49 +0800)
committerDr. Matthias St. Pierre <matthias.st.pierre@ncp-e.com>
Wed, 20 Oct 2021 18:28:53 +0000 (20:28 +0200)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/16852)

doc/man3/BN_BLINDING_new.pod
doc/man3/RSA_check_key.pod
doc/man3/RSA_set_method.pod
doc/man3/SSL_CTX_set_options.pod
doc/man3/SSL_CTX_use_certificate.pod

index 25d3c642a0e219ac3d95a0a0b4c36b65c580a220..f8c63291920b909f211459c5c299884e4e3bb010 100644 (file)
@@ -26,8 +26,8 @@ BN_BLINDING_set_flags, BN_BLINDING_create_param - blinding related BIGNUM functi
  void BN_BLINDING_set_current_thread(BN_BLINDING *b);
  int BN_BLINDING_lock(BN_BLINDING *b);
  int BN_BLINDING_unlock(BN_BLINDING *b);
- unsigned long BN_BLINDING_get_flags(const BN_BLINDING *);
- void BN_BLINDING_set_flags(BN_BLINDING *, unsigned long);
+ unsigned long BN_BLINDING_get_flags(const BN_BLINDING *b);
+ void BN_BLINDING_set_flags(BN_BLINDING *b, unsigned long flags);
  BN_BLINDING *BN_BLINDING_create_param(BN_BLINDING *b,
                                        const BIGNUM *e, BIGNUM *m, BN_CTX *ctx,
                                        int (*bn_mod_exp)(BIGNUM *r,
index f33d6b0aba0f646e0c8a4f87ff84dee63cffe8e8..09db90ce0647bae607f6fb06bf37de5806e411aa 100644 (file)
@@ -12,9 +12,9 @@ Deprecated since OpenSSL 3.0, can be hidden entirely by defining
 B<OPENSSL_API_COMPAT> with a suitable version value, see
 L<openssl_user_macros(7)>:
 
- int RSA_check_key_ex(RSA *rsa, BN_GENCB *cb);
+ int RSA_check_key_ex(const RSA *rsa, BN_GENCB *cb);
 
- int RSA_check_key(RSA *rsa);
+ int RSA_check_key(const RSA *rsa);
 
 =head1 DESCRIPTION
 
index 884765ce973d63b6f09aa3bf958720a04c0a90ed..723cc0623274553b2e1a39d7850ab54c3b9c4ac5 100644 (file)
@@ -16,13 +16,13 @@ L<openssl_user_macros(7)>:
 
  void RSA_set_default_method(const RSA_METHOD *meth);
 
- RSA_METHOD *RSA_get_default_method(void);
const RSA_METHOD *RSA_get_default_method(void);
 
  int RSA_set_method(RSA *rsa, const RSA_METHOD *meth);
 
- RSA_METHOD *RSA_get_method(const RSA *rsa);
const RSA_METHOD *RSA_get_method(const RSA *rsa);
 
- RSA_METHOD *RSA_PKCS1_OpenSSL(void);
const RSA_METHOD *RSA_PKCS1_OpenSSL(void);
 
  int RSA_flags(const RSA *rsa);
 
index dfd0c83afc1d0969d7ecbae6eca07d0bcbe4f33e..08522522cd0bb88d870c3be63f2b9c8ce62aa22f 100644 (file)
@@ -16,8 +16,8 @@ SSL_get_secure_renegotiation_support - manipulate SSL options
  uint64_t SSL_CTX_clear_options(SSL_CTX *ctx, uint64_t options);
  uint64_t SSL_clear_options(SSL *ssl, uint64_t options);
 
- uint64_t SSL_CTX_get_options(SSL_CTX *ctx);
- uint64_t SSL_get_options(SSL *ssl);
+ uint64_t SSL_CTX_get_options(const SSL_CTX *ctx);
+ uint64_t SSL_get_options(const SSL *ssl);
 
  long SSL_get_secure_renegotiation_support(SSL *ssl);
 
index 72608c84daf0504754dd83fb35a1110a8cf50875..ec9ea4205d9af07ef3c9e84b885b965e76600e37 100644 (file)
@@ -20,27 +20,27 @@ SSL_CTX_use_cert_and_key, SSL_use_cert_and_key
  #include <openssl/ssl.h>
 
  int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x);
- int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len, unsigned char *d);
+ int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len, const unsigned char *d);
  int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file, int type);
  int SSL_use_certificate(SSL *ssl, X509 *x);
- int SSL_use_certificate_ASN1(SSL *ssl, unsigned char *d, int len);
+ int SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len);
  int SSL_use_certificate_file(SSL *ssl, const char *file, int type);
 
  int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file);
  int SSL_use_certificate_chain_file(SSL *ssl, const char *file);
 
  int SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey);
- int SSL_CTX_use_PrivateKey_ASN1(int pk, SSL_CTX *ctx, unsigned char *d,
+ int SSL_CTX_use_PrivateKey_ASN1(int pk, SSL_CTX *ctx, const unsigned char *d,
                                  long len);
  int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file, int type);
  int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa);
- int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, unsigned char *d, long len);
+ int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, const unsigned char *d, long len);
  int SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx, const char *file, int type);
  int SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey);
- int SSL_use_PrivateKey_ASN1(int pk, SSL *ssl, unsigned char *d, long len);
+ int SSL_use_PrivateKey_ASN1(int pk, SSL *ssl, const unsigned char *d, long len);
  int SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type);
  int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa);
- int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, unsigned char *d, long len);
+ int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, const unsigned char *d, long len);
  int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type);
 
  int SSL_CTX_check_private_key(const SSL_CTX *ctx);