X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=ssl%2Fssl_rsa.c;h=34a4d27dbee57df8e8deeeb9515a75fd21758fcb;hb=c5e48d8b0143e7f69c6f5bc9ca8e3ba6e4566a78;hp=f367d39bdc13346b278f2ab13768d665ce7a7d38;hpb=74678cc2f8132ad34f7c33731c4765cf3083de8c;p=openssl.git diff --git a/ssl/ssl_rsa.c b/ssl/ssl_rsa.c index f367d39bdc..34a4d27dbe 100644 --- a/ssl/ssl_rsa.c +++ b/ssl/ssl_rsa.c @@ -303,7 +303,7 @@ end: int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, unsigned char *d, long len) { int ret; - unsigned char *p; + const unsigned char *p; RSA *rsa; p=d; @@ -641,7 +641,7 @@ end: int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, unsigned char *d, long len) { int ret; - unsigned char *p; + const unsigned char *p; RSA *rsa; p=d; @@ -794,7 +794,7 @@ int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file) ret = 0; goto end; } - /* Note that we must not free r if it was succesully + /* Note that we must not free r if it was successfully * added to the chain (while we must free the main * certificate, since its reference count is increased * by SSL_CTX_use_certificate). */