Commit 693b71fa authored by Viktor Szakats's avatar Viktor Szakats Committed by Rich Salz
Browse files

RT 1988: Add "const" to SSL_use_RSAPrivateKey_ASN1



The "unsigned char *d" should be const.
Reviewed-by: default avatarKurt Roeckx <kurt@roeckx.be>
parent 6d03125c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2098,7 +2098,7 @@ void SSL_set_cert_cb(SSL *s, int (*cb)(SSL *ssl, void *arg), void *arg);
#ifndef OPENSSL_NO_RSA
int	SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa);
#endif
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_PrivateKey(SSL *ssl, EVP_PKEY *pkey);
int	SSL_use_PrivateKey_ASN1(int pk,SSL *ssl, const unsigned char *d, long len);
int	SSL_use_certificate(SSL *ssl, X509 *x);
+1 −1
Original line number Diff line number Diff line
@@ -296,7 +296,7 @@ end:
	}
#endif

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 ret;
	const unsigned char *p;