Fix some RSA documentation
authorMatt Caswell <matt@openssl.org>
Fri, 10 Mar 2017 15:49:04 +0000 (15:49 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 10 Mar 2017 16:13:32 +0000 (16:13 +0000)
RSA_private_encrypt(), RSA_public_decrypt(), RSA_public_encrypt() and
RSA_private_decrypt() are declared with a "const" from parameter, but
this is not reflected in the docs.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2899)

doc/man3/RSA_private_encrypt.pod
doc/man3/RSA_public_encrypt.pod

index 7870371936cd91de1eb4bb6a365c8251f06d95d3..1eb7a0adbd9d62e0f834442f038a0c4950ded299 100644 (file)
@@ -8,10 +8,10 @@ RSA_private_encrypt, RSA_public_decrypt - low level signature operations
 
  #include <openssl/rsa.h>
 
- int RSA_private_encrypt(int flen, unsigned char *from,
+ int RSA_private_encrypt(int flen, const unsigned char *from,
     unsigned char *to, RSA *rsa, int padding);
 
- int RSA_public_decrypt(int flen, unsigned char *from,
+ int RSA_public_decrypt(int flen, const unsigned char *from,
     unsigned char *to, RSA *rsa, int padding);
 
 =head1 DESCRIPTION
index 6aa785dec2f6f5d7a807efbf2a1ae18c0a2bc712..182d2cfddac475f70a63657419c1a7391b918f38 100644 (file)
@@ -8,10 +8,10 @@ RSA_public_encrypt, RSA_private_decrypt - RSA public key cryptography
 
  #include <openssl/rsa.h>
 
- int RSA_public_encrypt(int flen, unsigned char *from,
+ int RSA_public_encrypt(int flen, const unsigned char *from,
     unsigned char *to, RSA *rsa, int padding);
 
- int RSA_private_decrypt(int flen, unsigned char *from,
+ int RSA_private_decrypt(int flen, const unsigned char *from,
      unsigned char *to, RSA *rsa, int padding);
 
 =head1 DESCRIPTION