diff options
Diffstat (limited to 'src/lib/libssl/src/doc')
43 files changed, 160 insertions, 126 deletions
diff --git a/src/lib/libssl/src/doc/apps/asn1parse.pod b/src/lib/libssl/src/doc/apps/asn1parse.pod index e76e9813ab..69ee4dfee6 100644 --- a/src/lib/libssl/src/doc/apps/asn1parse.pod +++ b/src/lib/libssl/src/doc/apps/asn1parse.pod | |||
@@ -123,7 +123,7 @@ C<1.2.3.4 shortName A long name> | |||
123 | 123 | ||
124 | =head1 BUGS | 124 | =head1 BUGS |
125 | 125 | ||
126 | There should be options to change the format of input lines. The output of some | 126 | There should be options to change the format of output lines. The output of some |
127 | ASN.1 types is not well handled (if at all). | 127 | ASN.1 types is not well handled (if at all). |
128 | 128 | ||
129 | =cut | 129 | =cut |
diff --git a/src/lib/libssl/src/doc/apps/dgst.pod b/src/lib/libssl/src/doc/apps/dgst.pod index 1648742bcf..b0d198724c 100644 --- a/src/lib/libssl/src/doc/apps/dgst.pod +++ b/src/lib/libssl/src/doc/apps/dgst.pod | |||
@@ -14,6 +14,7 @@ B<openssl> B<dgst> | |||
14 | [B<-binary>] | 14 | [B<-binary>] |
15 | [B<-out filename>] | 15 | [B<-out filename>] |
16 | [B<-sign filename>] | 16 | [B<-sign filename>] |
17 | [B<-passin arg>] | ||
17 | [B<-verify filename>] | 18 | [B<-verify filename>] |
18 | [B<-prverify filename>] | 19 | [B<-prverify filename>] |
19 | [B<-signature filename>] | 20 | [B<-signature filename>] |
@@ -59,6 +60,11 @@ filename to output to, or standard output by default. | |||
59 | 60 | ||
60 | digitally sign the digest using the private key in "filename". | 61 | digitally sign the digest using the private key in "filename". |
61 | 62 | ||
63 | =item B<-passin arg> | ||
64 | |||
65 | the private key password source. For more information about the format of B<arg> | ||
66 | see the B<PASS PHRASE ARGUMENTS> section in L<openssl(1)|openssl(1)>. | ||
67 | |||
62 | =item B<-verify filename> | 68 | =item B<-verify filename> |
63 | 69 | ||
64 | verify the signature using the the public key in "filename". | 70 | verify the signature using the the public key in "filename". |
diff --git a/src/lib/libssl/src/doc/apps/enc.pod b/src/lib/libssl/src/doc/apps/enc.pod index ddf081617f..18fe7c81c7 100644 --- a/src/lib/libssl/src/doc/apps/enc.pod +++ b/src/lib/libssl/src/doc/apps/enc.pod | |||
@@ -86,7 +86,7 @@ versions of OpenSSL. Superseded by the B<-pass> argument. | |||
86 | =item B<-kfile filename> | 86 | =item B<-kfile filename> |
87 | 87 | ||
88 | read the password to derive the key from the first line of B<filename>. | 88 | read the password to derive the key from the first line of B<filename>. |
89 | This is for computability with previous versions of OpenSSL. Superseded by | 89 | This is for compatibility with previous versions of OpenSSL. Superseded by |
90 | the B<-pass> argument. | 90 | the B<-pass> argument. |
91 | 91 | ||
92 | =item B<-S salt> | 92 | =item B<-S salt> |
diff --git a/src/lib/libssl/src/doc/crypto/BN_num_bytes.pod b/src/lib/libssl/src/doc/crypto/BN_num_bytes.pod index 61589fb9ac..a6a2e3f819 100644 --- a/src/lib/libssl/src/doc/crypto/BN_num_bytes.pod +++ b/src/lib/libssl/src/doc/crypto/BN_num_bytes.pod | |||
@@ -16,8 +16,14 @@ BN_num_bits, BN_num_bytes, BN_num_bits_word - get BIGNUM size | |||
16 | 16 | ||
17 | =head1 DESCRIPTION | 17 | =head1 DESCRIPTION |
18 | 18 | ||
19 | These functions return the size of a B<BIGNUM> in bytes or bits, | 19 | BN_num_bytes() returns the size of a B<BIGNUM> in bytes. |
20 | and the size of an unsigned integer in bits. | 20 | |
21 | BN_num_bits_word() returns the number of significant bits in a word. | ||
22 | If we take 0x00000432 as an example, it returns 11, not 16, not 32. | ||
23 | Basically, except for a zero, it returns I<floor(log2(w))+1>. | ||
24 | |||
25 | BN_num_bits() returns the number of significant bits in a B<BIGNUM>, | ||
26 | following the same principle as BN_num_bits_word(). | ||
21 | 27 | ||
22 | BN_num_bytes() is a macro. | 28 | BN_num_bytes() is a macro. |
23 | 29 | ||
@@ -25,9 +31,23 @@ BN_num_bytes() is a macro. | |||
25 | 31 | ||
26 | The size. | 32 | The size. |
27 | 33 | ||
34 | =head1 NOTES | ||
35 | |||
36 | Some have tried using BN_num_bits() on individual numbers in RSA keys, | ||
37 | DH keys and DSA keys, and found that they don't always come up with | ||
38 | the number of bits they expected (something like 512, 1024, 2048, | ||
39 | ...). This is because generating a number with some specific number | ||
40 | of bits doesn't always set the highest bits, thereby making the number | ||
41 | of I<significant> bits a little lower. If you want to know the "key | ||
42 | size" of such a key, either use functions like RSA_size(), DH_size() | ||
43 | and DSA_size(), or use BN_num_bytes() and multiply with 8 (although | ||
44 | there's no real guarantee that will match the "key size", just a lot | ||
45 | more probability). | ||
46 | |||
28 | =head1 SEE ALSO | 47 | =head1 SEE ALSO |
29 | 48 | ||
30 | L<bn(3)|bn(3)> | 49 | L<bn(3)|bn(3)>, L<DH_size(3)|DH_size(3)>, L<DSA_size(3)|DSA_size(3)>, |
50 | L<RSA_size(3)|RSA_size(3)> | ||
31 | 51 | ||
32 | =head1 HISTORY | 52 | =head1 HISTORY |
33 | 53 | ||
diff --git a/src/lib/libssl/src/doc/crypto/ERR_error_string.pod b/src/lib/libssl/src/doc/crypto/ERR_error_string.pod index e01beb817a..cdfa7fe1fe 100644 --- a/src/lib/libssl/src/doc/crypto/ERR_error_string.pod +++ b/src/lib/libssl/src/doc/crypto/ERR_error_string.pod | |||
@@ -11,7 +11,7 @@ error message | |||
11 | #include <openssl/err.h> | 11 | #include <openssl/err.h> |
12 | 12 | ||
13 | char *ERR_error_string(unsigned long e, char *buf); | 13 | char *ERR_error_string(unsigned long e, char *buf); |
14 | char *ERR_error_string_n(unsigned long e, char *buf, size_t len); | 14 | void ERR_error_string_n(unsigned long e, char *buf, size_t len); |
15 | 15 | ||
16 | const char *ERR_lib_error_string(unsigned long e); | 16 | const char *ERR_lib_error_string(unsigned long e); |
17 | const char *ERR_func_error_string(unsigned long e); | 17 | const char *ERR_func_error_string(unsigned long e); |
diff --git a/src/lib/libssl/src/doc/crypto/EVP_EncryptInit.pod b/src/lib/libssl/src/doc/crypto/EVP_EncryptInit.pod index daf57e5895..40e525dd56 100644 --- a/src/lib/libssl/src/doc/crypto/EVP_EncryptInit.pod +++ b/src/lib/libssl/src/doc/crypto/EVP_EncryptInit.pod | |||
@@ -479,6 +479,7 @@ General encryption, decryption function example using FILE I/O and RC2 with an | |||
479 | if(!EVP_CipherUpdate(&ctx, outbuf, &outlen, inbuf, inlen)) | 479 | if(!EVP_CipherUpdate(&ctx, outbuf, &outlen, inbuf, inlen)) |
480 | { | 480 | { |
481 | /* Error */ | 481 | /* Error */ |
482 | EVP_CIPHER_CTX_cleanup(&ctx); | ||
482 | return 0; | 483 | return 0; |
483 | } | 484 | } |
484 | fwrite(outbuf, 1, outlen, out); | 485 | fwrite(outbuf, 1, outlen, out); |
@@ -486,6 +487,7 @@ General encryption, decryption function example using FILE I/O and RC2 with an | |||
486 | if(!EVP_CipherFinal_ex(&ctx, outbuf, &outlen)) | 487 | if(!EVP_CipherFinal_ex(&ctx, outbuf, &outlen)) |
487 | { | 488 | { |
488 | /* Error */ | 489 | /* Error */ |
490 | EVP_CIPHER_CTX_cleanup(&ctx); | ||
489 | return 0; | 491 | return 0; |
490 | } | 492 | } |
491 | fwrite(outbuf, 1, outlen, out); | 493 | fwrite(outbuf, 1, outlen, out); |
diff --git a/src/lib/libssl/src/doc/crypto/EVP_SealInit.pod b/src/lib/libssl/src/doc/crypto/EVP_SealInit.pod index b5e477e294..48a0e29954 100644 --- a/src/lib/libssl/src/doc/crypto/EVP_SealInit.pod +++ b/src/lib/libssl/src/doc/crypto/EVP_SealInit.pod | |||
@@ -8,8 +8,9 @@ EVP_SealInit, EVP_SealUpdate, EVP_SealFinal - EVP envelope encryption | |||
8 | 8 | ||
9 | #include <openssl/evp.h> | 9 | #include <openssl/evp.h> |
10 | 10 | ||
11 | int EVP_SealInit(EVP_CIPHER_CTX *ctx, EVP_CIPHER *type, unsigned char **ek, | 11 | int EVP_SealInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, |
12 | int *ekl, unsigned char *iv,EVP_PKEY **pubk, int npubk); | 12 | unsigned char **ek, int *ekl, unsigned char *iv, |
13 | EVP_PKEY **pubk, int npubk); | ||
13 | int EVP_SealUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, | 14 | int EVP_SealUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, |
14 | int *outl, unsigned char *in, int inl); | 15 | int *outl, unsigned char *in, int inl); |
15 | int EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, | 16 | int EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, |
diff --git a/src/lib/libssl/src/doc/crypto/EVP_SignInit.pod b/src/lib/libssl/src/doc/crypto/EVP_SignInit.pod index e65e54ce52..0bace24938 100644 --- a/src/lib/libssl/src/doc/crypto/EVP_SignInit.pod +++ b/src/lib/libssl/src/doc/crypto/EVP_SignInit.pod | |||
@@ -29,11 +29,10 @@ EVP_SignUpdate() hashes B<cnt> bytes of data at B<d> into the | |||
29 | signature context B<ctx>. This function can be called several times on the | 29 | signature context B<ctx>. This function can be called several times on the |
30 | same B<ctx> to include additional data. | 30 | same B<ctx> to include additional data. |
31 | 31 | ||
32 | EVP_SignFinal() signs the data in B<ctx> using the private key B<pkey> | 32 | EVP_SignFinal() signs the data in B<ctx> using the private key B<pkey> and |
33 | and places the signature in B<sig>. If the B<s> parameter is not NULL | 33 | places the signature in B<sig>. The number of bytes of data written (i.e. the |
34 | then the number of bytes of data written (i.e. the length of the signature) | 34 | length of the signature) will be written to the integer at B<s>, at most |
35 | will be written to the integer at B<s>, at most EVP_PKEY_size(pkey) bytes | 35 | EVP_PKEY_size(pkey) bytes will be written. |
36 | will be written. | ||
37 | 36 | ||
38 | EVP_SignInit() initializes a signing context B<ctx> to use the default | 37 | EVP_SignInit() initializes a signing context B<ctx> to use the default |
39 | implementation of digest B<type>. | 38 | implementation of digest B<type>. |
diff --git a/src/lib/libssl/src/doc/crypto/RSA_public_encrypt.pod b/src/lib/libssl/src/doc/crypto/RSA_public_encrypt.pod index d53e19d2b7..ab0fe3b2cd 100644 --- a/src/lib/libssl/src/doc/crypto/RSA_public_encrypt.pod +++ b/src/lib/libssl/src/doc/crypto/RSA_public_encrypt.pod | |||
@@ -47,9 +47,10 @@ Encrypting user data directly with RSA is insecure. | |||
47 | =back | 47 | =back |
48 | 48 | ||
49 | B<flen> must be less than RSA_size(B<rsa>) - 11 for the PKCS #1 v1.5 | 49 | B<flen> must be less than RSA_size(B<rsa>) - 11 for the PKCS #1 v1.5 |
50 | based padding modes, and less than RSA_size(B<rsa>) - 41 for | 50 | based padding modes, less than RSA_size(B<rsa>) - 41 for |
51 | RSA_PKCS1_OAEP_PADDING. The random number generator must be seeded | 51 | RSA_PKCS1_OAEP_PADDING and exactly RSA_size(B<rsa>) for RSA_NO_PADDING. |
52 | prior to calling RSA_public_encrypt(). | 52 | The random number generator must be seeded prior to calling |
53 | RSA_public_encrypt(). | ||
53 | 54 | ||
54 | RSA_private_decrypt() decrypts the B<flen> bytes at B<from> using the | 55 | RSA_private_decrypt() decrypts the B<flen> bytes at B<from> using the |
55 | private key B<rsa> and stores the plaintext in B<to>. B<to> must point | 56 | private key B<rsa> and stores the plaintext in B<to>. B<to> must point |
diff --git a/src/lib/libssl/src/doc/crypto/blowfish.pod b/src/lib/libssl/src/doc/crypto/blowfish.pod index ed71334f56..5b2d274c15 100644 --- a/src/lib/libssl/src/doc/crypto/blowfish.pod +++ b/src/lib/libssl/src/doc/crypto/blowfish.pod | |||
@@ -32,7 +32,7 @@ by Counterpane (see http://www.counterpane.com/blowfish.html ). | |||
32 | 32 | ||
33 | Blowfish is a block cipher that operates on 64 bit (8 byte) blocks of data. | 33 | Blowfish is a block cipher that operates on 64 bit (8 byte) blocks of data. |
34 | It uses a variable size key, but typically, 128 bit (16 byte) keys are | 34 | It uses a variable size key, but typically, 128 bit (16 byte) keys are |
35 | a considered good for strong encryption. Blowfish can be used in the same | 35 | considered good for strong encryption. Blowfish can be used in the same |
36 | modes as DES (see L<des_modes(7)|des_modes(7)>). Blowfish is currently one | 36 | modes as DES (see L<des_modes(7)|des_modes(7)>). Blowfish is currently one |
37 | of the faster block ciphers. It is quite a bit faster than DES, and much | 37 | of the faster block ciphers. It is quite a bit faster than DES, and much |
38 | faster than IDEA or RC2. | 38 | faster than IDEA or RC2. |
diff --git a/src/lib/libssl/src/doc/crypto/pem.pod b/src/lib/libssl/src/doc/crypto/pem.pod index 8613114452..4f9a27df0c 100644 --- a/src/lib/libssl/src/doc/crypto/pem.pod +++ b/src/lib/libssl/src/doc/crypto/pem.pod | |||
@@ -471,6 +471,6 @@ is guaranteed to work. | |||
471 | =head1 RETURN CODES | 471 | =head1 RETURN CODES |
472 | 472 | ||
473 | The read routines return either a pointer to the structure read or NULL | 473 | The read routines return either a pointer to the structure read or NULL |
474 | is an error occurred. | 474 | if an error occurred. |
475 | 475 | ||
476 | The write routines return 1 for success or 0 for failure. | 476 | The write routines return 1 for success or 0 for failure. |
diff --git a/src/lib/libssl/src/doc/ssl/SSL_CIPHER_get_name.pod b/src/lib/libssl/src/doc/ssl/SSL_CIPHER_get_name.pod index 914eb7c9e3..f62a869a9b 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_CIPHER_get_name.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_CIPHER_get_name.pod | |||
@@ -8,9 +8,9 @@ SSL_CIPHER_get_name, SSL_CIPHER_get_bits, SSL_CIPHER_get_version, SSL_CIPHER_des | |||
8 | 8 | ||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | const char *SSL_CIPHER_get_name(SSL_CIPHER *cipher); | 11 | const char *SSL_CIPHER_get_name(const SSL_CIPHER *cipher); |
12 | int SSL_CIPHER_get_bits(SSL_CIPHER *cipher, int *alg_bits); | 12 | int SSL_CIPHER_get_bits(const SSL_CIPHER *cipher, int *alg_bits); |
13 | char *SSL_CIPHER_get_version(SSL_CIPHER *cipher); | 13 | char *SSL_CIPHER_get_version(const SSL_CIPHER *cipher); |
14 | char *SSL_CIPHER_description(SSL_CIPHER *cipher, char *buf, int size); | 14 | char *SSL_CIPHER_description(SSL_CIPHER *cipher, char *buf, int size); |
15 | 15 | ||
16 | =head1 DESCRIPTION | 16 | =head1 DESCRIPTION |
diff --git a/src/lib/libssl/src/doc/ssl/SSL_CTX_get_ex_new_index.pod b/src/lib/libssl/src/doc/ssl/SSL_CTX_get_ex_new_index.pod index 5686faf299..0c40a91f2f 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_CTX_get_ex_new_index.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_CTX_get_ex_new_index.pod | |||
@@ -15,7 +15,7 @@ SSL_CTX_get_ex_new_index, SSL_CTX_set_ex_data, SSL_CTX_get_ex_data - internal ap | |||
15 | 15 | ||
16 | int SSL_CTX_set_ex_data(SSL_CTX *ctx, int idx, void *arg); | 16 | int SSL_CTX_set_ex_data(SSL_CTX *ctx, int idx, void *arg); |
17 | 17 | ||
18 | void *SSL_CTX_get_ex_data(SSL_CTX *ctx, int idx); | 18 | void *SSL_CTX_get_ex_data(const SSL_CTX *ctx, int idx); |
19 | 19 | ||
20 | typedef int new_func(void *parent, void *ptr, CRYPTO_EX_DATA *ad, | 20 | typedef int new_func(void *parent, void *ptr, CRYPTO_EX_DATA *ad, |
21 | int idx, long argl, void *argp); | 21 | int idx, long argl, void *argp); |
diff --git a/src/lib/libssl/src/doc/ssl/SSL_CTX_get_verify_mode.pod b/src/lib/libssl/src/doc/ssl/SSL_CTX_get_verify_mode.pod index 7f10c6e945..2a3747e75c 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_CTX_get_verify_mode.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_CTX_get_verify_mode.pod | |||
@@ -8,12 +8,12 @@ SSL_CTX_get_verify_mode, SSL_get_verify_mode, SSL_CTX_get_verify_depth, SSL_get_ | |||
8 | 8 | ||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | int SSL_CTX_get_verify_mode(SSL_CTX *ctx); | 11 | int SSL_CTX_get_verify_mode(const SSL_CTX *ctx); |
12 | int SSL_get_verify_mode(SSL *ssl); | 12 | int SSL_get_verify_mode(const SSL *ssl); |
13 | int SSL_CTX_get_verify_depth(SSL_CTX *ctx); | 13 | int SSL_CTX_get_verify_depth(const SSL_CTX *ctx); |
14 | int SSL_get_verify_depth(SSL *ssl); | 14 | int SSL_get_verify_depth(const SSL *ssl); |
15 | int (*SSL_CTX_get_verify_callback(SSL_CTX *ctx))(int, X509_STORE_CTX *); | 15 | int (*SSL_CTX_get_verify_callback(const SSL_CTX *ctx))(int, X509_STORE_CTX *); |
16 | int (*SSL_get_verify_callback(SSL *ssl))(int, X509_STORE_CTX *); | 16 | int (*SSL_get_verify_callback(const SSL *ssl))(int, X509_STORE_CTX *); |
17 | 17 | ||
18 | =head1 DESCRIPTION | 18 | =head1 DESCRIPTION |
19 | 19 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_CTX_set_cert_store.pod b/src/lib/libssl/src/doc/ssl/SSL_CTX_set_cert_store.pod index 3a240c4d37..6acf0d9f9b 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_CTX_set_cert_store.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_CTX_set_cert_store.pod | |||
@@ -9,7 +9,7 @@ SSL_CTX_set_cert_store, SSL_CTX_get_cert_store - manipulate X509 certificate ver | |||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | void SSL_CTX_set_cert_store(SSL_CTX *ctx, X509_STORE *store); | 11 | void SSL_CTX_set_cert_store(SSL_CTX *ctx, X509_STORE *store); |
12 | X509_STORE *SSL_CTX_get_cert_store(SSL_CTX *ctx); | 12 | X509_STORE *SSL_CTX_get_cert_store(const SSL_CTX *ctx); |
13 | 13 | ||
14 | =head1 DESCRIPTION | 14 | =head1 DESCRIPTION |
15 | 15 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_CTX_set_info_callback.pod b/src/lib/libssl/src/doc/ssl/SSL_CTX_set_info_callback.pod index 63d0b8d33f..0b4affd5eb 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_CTX_set_info_callback.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_CTX_set_info_callback.pod | |||
@@ -9,10 +9,10 @@ SSL_CTX_set_info_callback, SSL_CTX_get_info_callback, SSL_set_info_callback, SSL | |||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | void SSL_CTX_set_info_callback(SSL_CTX *ctx, void (*callback)()); | 11 | void SSL_CTX_set_info_callback(SSL_CTX *ctx, void (*callback)()); |
12 | void (*SSL_CTX_get_info_callback(SSL_CTX *ctx))(); | 12 | void (*SSL_CTX_get_info_callback(const SSL_CTX *ctx))(); |
13 | 13 | ||
14 | void SSL_set_info_callback(SSL *ssl, void (*callback)()); | 14 | void SSL_set_info_callback(SSL *ssl, void (*callback)()); |
15 | void (*SSL_get_info_callback(SSL *ssl))(); | 15 | void (*SSL_get_info_callback(const SSL *ssl))(); |
16 | 16 | ||
17 | =head1 DESCRIPTION | 17 | =head1 DESCRIPTION |
18 | 18 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_CTX_set_options.pod b/src/lib/libssl/src/doc/ssl/SSL_CTX_set_options.pod index 766f0c9200..5ab1b32f93 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_CTX_set_options.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_CTX_set_options.pod | |||
@@ -163,7 +163,7 @@ When choosing a cipher, use the server's preferences instead of the client | |||
163 | preferences. When not set, the SSL server will always follow the clients | 163 | preferences. When not set, the SSL server will always follow the clients |
164 | preferences. When set, the SSLv3/TLSv1 server will choose following its | 164 | preferences. When set, the SSLv3/TLSv1 server will choose following its |
165 | own preferences. Because of the different protocol, for SSLv2 the server | 165 | own preferences. Because of the different protocol, for SSLv2 the server |
166 | will send his list of preferences to the client and the client chooses. | 166 | will send its list of preferences to the client and the client chooses. |
167 | 167 | ||
168 | =item SSL_OP_PKCS1_CHECK_1 | 168 | =item SSL_OP_PKCS1_CHECK_1 |
169 | 169 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_CTX_set_quiet_shutdown.pod b/src/lib/libssl/src/doc/ssl/SSL_CTX_set_quiet_shutdown.pod index 1d0526d59a..393f8ff0b4 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_CTX_set_quiet_shutdown.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_CTX_set_quiet_shutdown.pod | |||
@@ -9,10 +9,10 @@ SSL_CTX_set_quiet_shutdown, SSL_CTX_get_quiet_shutdown, SSL_set_quiet_shutdown, | |||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | void SSL_CTX_set_quiet_shutdown(SSL_CTX *ctx, int mode); | 11 | void SSL_CTX_set_quiet_shutdown(SSL_CTX *ctx, int mode); |
12 | int SSL_CTX_get_quiet_shutdown(SSL_CTX *ctx); | 12 | int SSL_CTX_get_quiet_shutdown(const SSL_CTX *ctx); |
13 | 13 | ||
14 | void SSL_set_quiet_shutdown(SSL *ssl, int mode); | 14 | void SSL_set_quiet_shutdown(SSL *ssl, int mode); |
15 | int SSL_get_quiet_shutdown(SSL *ssl); | 15 | int SSL_get_quiet_shutdown(const SSL *ssl); |
16 | 16 | ||
17 | =head1 DESCRIPTION | 17 | =head1 DESCRIPTION |
18 | 18 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_CTX_set_session_id_context.pod b/src/lib/libssl/src/doc/ssl/SSL_CTX_set_session_id_context.pod index 5949395159..58fc685506 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_CTX_set_session_id_context.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_CTX_set_session_id_context.pod | |||
@@ -46,7 +46,8 @@ B<SSL_MAX_SSL_SESSION_ID_LENGTH>. | |||
46 | 46 | ||
47 | =head1 WARNINGS | 47 | =head1 WARNINGS |
48 | 48 | ||
49 | If the session id context is not set on an SSL/TLS server, stored sessions | 49 | If the session id context is not set on an SSL/TLS server and client |
50 | certificates are used, stored sessions | ||
50 | will not be reused but a fatal error will be flagged and the handshake | 51 | will not be reused but a fatal error will be flagged and the handshake |
51 | will fail. | 52 | will fail. |
52 | 53 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_CTX_use_certificate.pod b/src/lib/libssl/src/doc/ssl/SSL_CTX_use_certificate.pod index ea2faba3ec..48c888c337 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_CTX_use_certificate.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_CTX_use_certificate.pod | |||
@@ -31,8 +31,8 @@ SSL_CTX_use_certificate, SSL_CTX_use_certificate_ASN1, SSL_CTX_use_certificate_f | |||
31 | int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, unsigned char *d, long len); | 31 | int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, unsigned char *d, long len); |
32 | int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type); | 32 | int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type); |
33 | 33 | ||
34 | int SSL_CTX_check_private_key(SSL_CTX *ctx); | 34 | int SSL_CTX_check_private_key(const SSL_CTX *ctx); |
35 | int SSL_check_private_key(SSL *ssl); | 35 | int SSL_check_private_key(const SSL *ssl); |
36 | 36 | ||
37 | =head1 DESCRIPTION | 37 | =head1 DESCRIPTION |
38 | 38 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_SESSION_get_ex_new_index.pod b/src/lib/libssl/src/doc/ssl/SSL_SESSION_get_ex_new_index.pod index da0bcf1590..657cda931f 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_SESSION_get_ex_new_index.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_SESSION_get_ex_new_index.pod | |||
@@ -15,7 +15,7 @@ SSL_SESSION_get_ex_new_index, SSL_SESSION_set_ex_data, SSL_SESSION_get_ex_data - | |||
15 | 15 | ||
16 | int SSL_SESSION_set_ex_data(SSL_SESSION *session, int idx, void *arg); | 16 | int SSL_SESSION_set_ex_data(SSL_SESSION *session, int idx, void *arg); |
17 | 17 | ||
18 | void *SSL_SESSION_get_ex_data(SSL_SESSION *session, int idx); | 18 | void *SSL_SESSION_get_ex_data(const SSL_SESSION *session, int idx); |
19 | 19 | ||
20 | typedef int new_func(void *parent, void *ptr, CRYPTO_EX_DATA *ad, | 20 | typedef int new_func(void *parent, void *ptr, CRYPTO_EX_DATA *ad, |
21 | int idx, long argl, void *argp); | 21 | int idx, long argl, void *argp); |
diff --git a/src/lib/libssl/src/doc/ssl/SSL_SESSION_get_time.pod b/src/lib/libssl/src/doc/ssl/SSL_SESSION_get_time.pod index ea3c2bcfe6..00883ed2a0 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_SESSION_get_time.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_SESSION_get_time.pod | |||
@@ -8,14 +8,14 @@ SSL_SESSION_get_time, SSL_SESSION_set_time, SSL_SESSION_get_timeout, SSL_SESSION | |||
8 | 8 | ||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | long SSL_SESSION_get_time(SSL_SESSION *s); | 11 | long SSL_SESSION_get_time(const SSL_SESSION *s); |
12 | long SSL_SESSION_set_time(SSL_SESSION *s, long tm); | 12 | long SSL_SESSION_set_time(SSL_SESSION *s, long tm); |
13 | long SSL_SESSION_get_timeout(SSL_SESSION *s); | 13 | long SSL_SESSION_get_timeout(const SSL_SESSION *s); |
14 | long SSL_SESSION_set_timeout(SSL_SESSION *s, long tm); | 14 | long SSL_SESSION_set_timeout(SSL_SESSION *s, long tm); |
15 | 15 | ||
16 | long SSL_get_time(SSL_SESSION *s); | 16 | long SSL_get_time(const SSL_SESSION *s); |
17 | long SSL_set_time(SSL_SESSION *s, long tm); | 17 | long SSL_set_time(SSL_SESSION *s, long tm); |
18 | long SSL_get_timeout(SSL_SESSION *s); | 18 | long SSL_get_timeout(const SSL_SESSION *s); |
19 | long SSL_set_timeout(SSL_SESSION *s, long tm); | 19 | long SSL_set_timeout(SSL_SESSION *s, long tm); |
20 | 20 | ||
21 | =head1 DESCRIPTION | 21 | =head1 DESCRIPTION |
diff --git a/src/lib/libssl/src/doc/ssl/SSL_get_SSL_CTX.pod b/src/lib/libssl/src/doc/ssl/SSL_get_SSL_CTX.pod index 52d0227b19..659c482c79 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_get_SSL_CTX.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_get_SSL_CTX.pod | |||
@@ -8,7 +8,7 @@ SSL_get_SSL_CTX - get the SSL_CTX from which an SSL is created | |||
8 | 8 | ||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | SSL_CTX *SSL_get_SSL_CTX(SSL *ssl); | 11 | SSL_CTX *SSL_get_SSL_CTX(const SSL *ssl); |
12 | 12 | ||
13 | =head1 DESCRIPTION | 13 | =head1 DESCRIPTION |
14 | 14 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_get_ciphers.pod b/src/lib/libssl/src/doc/ssl/SSL_get_ciphers.pod index 2a57455c23..aecadd9138 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_get_ciphers.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_get_ciphers.pod | |||
@@ -8,8 +8,8 @@ SSL_get_ciphers, SSL_get_cipher_list - get list of available SSL_CIPHERs | |||
8 | 8 | ||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | STACK_OF(SSL_CIPHER) *SSL_get_ciphers(SSL *ssl); | 11 | STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const SSL *ssl); |
12 | const char *SSL_get_cipher_list(SSL *ssl, int priority); | 12 | const char *SSL_get_cipher_list(const SSL *ssl, int priority); |
13 | 13 | ||
14 | =head1 DESCRIPTION | 14 | =head1 DESCRIPTION |
15 | 15 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_get_client_CA_list.pod b/src/lib/libssl/src/doc/ssl/SSL_get_client_CA_list.pod index 5693fdebb2..68181b2407 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_get_client_CA_list.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_get_client_CA_list.pod | |||
@@ -8,8 +8,8 @@ SSL_get_client_CA_list, SSL_CTX_get_client_CA_list - get list of client CAs | |||
8 | 8 | ||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | STACK_OF(X509_NAME) *SSL_get_client_CA_list(SSL *s); | 11 | STACK_OF(X509_NAME) *SSL_get_client_CA_list(const SSL *s); |
12 | STACK_OF(X509_NAME) *SSL_CTX_get_client_CA_list(SSL_CTX *ctx); | 12 | STACK_OF(X509_NAME) *SSL_CTX_get_client_CA_list(const SSL_CTX *ctx); |
13 | 13 | ||
14 | =head1 DESCRIPTION | 14 | =head1 DESCRIPTION |
15 | 15 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_get_current_cipher.pod b/src/lib/libssl/src/doc/ssl/SSL_get_current_cipher.pod index 2dd7261d89..e5ab12491e 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_get_current_cipher.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_get_current_cipher.pod | |||
@@ -9,7 +9,7 @@ SSL_get_cipher_bits, SSL_get_cipher_version - get SSL_CIPHER of a connection | |||
9 | 9 | ||
10 | #include <openssl/ssl.h> | 10 | #include <openssl/ssl.h> |
11 | 11 | ||
12 | SSL_CIPHER *SSL_get_current_cipher(SSL *ssl); | 12 | SSL_CIPHER *SSL_get_current_cipher(const SSL *ssl); |
13 | #define SSL_get_cipher(s) \ | 13 | #define SSL_get_cipher(s) \ |
14 | SSL_CIPHER_get_name(SSL_get_current_cipher(s)) | 14 | SSL_CIPHER_get_name(SSL_get_current_cipher(s)) |
15 | #define SSL_get_cipher_name(s) \ | 15 | #define SSL_get_cipher_name(s) \ |
diff --git a/src/lib/libssl/src/doc/ssl/SSL_get_default_timeout.pod b/src/lib/libssl/src/doc/ssl/SSL_get_default_timeout.pod index 8d43b31345..a648a9b82d 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_get_default_timeout.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_get_default_timeout.pod | |||
@@ -8,7 +8,7 @@ SSL_get_default_timeout - get default session timeout value | |||
8 | 8 | ||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | long SSL_get_default_timeout(SSL *ssl); | 11 | long SSL_get_default_timeout(const SSL *ssl); |
12 | 12 | ||
13 | =head1 DESCRIPTION | 13 | =head1 DESCRIPTION |
14 | 14 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_get_error.pod b/src/lib/libssl/src/doc/ssl/SSL_get_error.pod index fe28dd942a..48c6b15db7 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_get_error.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_get_error.pod | |||
@@ -8,7 +8,7 @@ SSL_get_error - obtain result code for TLS/SSL I/O operation | |||
8 | 8 | ||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | int SSL_get_error(SSL *ssl, int ret); | 11 | int SSL_get_error(const SSL *ssl, int ret); |
12 | 12 | ||
13 | =head1 DESCRIPTION | 13 | =head1 DESCRIPTION |
14 | 14 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_get_ex_new_index.pod b/src/lib/libssl/src/doc/ssl/SSL_get_ex_new_index.pod index 6644ef8fbc..228d23d8c0 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_get_ex_new_index.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_get_ex_new_index.pod | |||
@@ -15,7 +15,7 @@ SSL_get_ex_new_index, SSL_set_ex_data, SSL_get_ex_data - internal application sp | |||
15 | 15 | ||
16 | int SSL_set_ex_data(SSL *ssl, int idx, void *arg); | 16 | int SSL_set_ex_data(SSL *ssl, int idx, void *arg); |
17 | 17 | ||
18 | void *SSL_get_ex_data(SSL *ssl, int idx); | 18 | void *SSL_get_ex_data(const SSL *ssl, int idx); |
19 | 19 | ||
20 | typedef int new_func(void *parent, void *ptr, CRYPTO_EX_DATA *ad, | 20 | typedef int new_func(void *parent, void *ptr, CRYPTO_EX_DATA *ad, |
21 | int idx, long argl, void *argp); | 21 | int idx, long argl, void *argp); |
diff --git a/src/lib/libssl/src/doc/ssl/SSL_get_fd.pod b/src/lib/libssl/src/doc/ssl/SSL_get_fd.pod index a3f7625931..89260b522c 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_get_fd.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_get_fd.pod | |||
@@ -8,9 +8,9 @@ SSL_get_fd - get file descriptor linked to an SSL object | |||
8 | 8 | ||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | int SSL_get_fd(SSL *ssl); | 11 | int SSL_get_fd(const SSL *ssl); |
12 | int SSL_get_rfd(SSL *ssl); | 12 | int SSL_get_rfd(const SSL *ssl); |
13 | int SSL_get_wfd(SSL *ssl); | 13 | int SSL_get_wfd(const SSL *ssl); |
14 | 14 | ||
15 | =head1 DESCRIPTION | 15 | =head1 DESCRIPTION |
16 | 16 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_get_peer_cert_chain.pod b/src/lib/libssl/src/doc/ssl/SSL_get_peer_cert_chain.pod index 390ce0b41b..49fb88f86f 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_get_peer_cert_chain.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_get_peer_cert_chain.pod | |||
@@ -8,7 +8,7 @@ SSL_get_peer_cert_chain - get the X509 certificate chain of the peer | |||
8 | 8 | ||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | STACKOF(X509) *SSL_get_peer_cert_chain(SSL *ssl); | 11 | STACKOF(X509) *SSL_get_peer_cert_chain(const SSL *ssl); |
12 | 12 | ||
13 | =head1 DESCRIPTION | 13 | =head1 DESCRIPTION |
14 | 14 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_get_peer_certificate.pod b/src/lib/libssl/src/doc/ssl/SSL_get_peer_certificate.pod index 60635a9660..ef7c8be180 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_get_peer_certificate.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_get_peer_certificate.pod | |||
@@ -8,7 +8,7 @@ SSL_get_peer_certificate - get the X509 certificate of the peer | |||
8 | 8 | ||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | X509 *SSL_get_peer_certificate(SSL *ssl); | 11 | X509 *SSL_get_peer_certificate(const SSL *ssl); |
12 | 12 | ||
13 | =head1 DESCRIPTION | 13 | =head1 DESCRIPTION |
14 | 14 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_get_session.pod b/src/lib/libssl/src/doc/ssl/SSL_get_session.pod index dd9aba40b6..0c41caa922 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_get_session.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_get_session.pod | |||
@@ -8,8 +8,8 @@ SSL_get_session - retrieve TLS/SSL session data | |||
8 | 8 | ||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | SSL_SESSION *SSL_get_session(SSL *ssl); | 11 | SSL_SESSION *SSL_get_session(const SSL *ssl); |
12 | SSL_SESSION *SSL_get0_session(SSL *ssl); | 12 | SSL_SESSION *SSL_get0_session(const SSL *ssl); |
13 | SSL_SESSION *SSL_get1_session(SSL *ssl); | 13 | SSL_SESSION *SSL_get1_session(SSL *ssl); |
14 | 14 | ||
15 | =head1 DESCRIPTION | 15 | =head1 DESCRIPTION |
diff --git a/src/lib/libssl/src/doc/ssl/SSL_get_verify_result.pod b/src/lib/libssl/src/doc/ssl/SSL_get_verify_result.pod index e6bac9c35a..55b56a53f9 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_get_verify_result.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_get_verify_result.pod | |||
@@ -8,7 +8,7 @@ SSL_get_verify_result - get result of peer certificate verification | |||
8 | 8 | ||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | long SSL_get_verify_result(SSL *ssl); | 11 | long SSL_get_verify_result(const SSL *ssl); |
12 | 12 | ||
13 | =head1 DESCRIPTION | 13 | =head1 DESCRIPTION |
14 | 14 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_get_version.pod b/src/lib/libssl/src/doc/ssl/SSL_get_version.pod index 24d5291256..cc271db2c5 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_get_version.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_get_version.pod | |||
@@ -8,7 +8,7 @@ SSL_get_version - get the protocol version of a connection. | |||
8 | 8 | ||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | const char *SSL_get_version(SSL *ssl); | 11 | const char *SSL_get_version(const SSL *ssl); |
12 | 12 | ||
13 | =head1 DESCRIPTION | 13 | =head1 DESCRIPTION |
14 | 14 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_pending.pod b/src/lib/libssl/src/doc/ssl/SSL_pending.pod index b4c48598b2..43f2874e8b 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_pending.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_pending.pod | |||
@@ -8,7 +8,7 @@ SSL_pending - obtain number of readable bytes buffered in an SSL object | |||
8 | 8 | ||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | int SSL_pending(SSL *ssl); | 11 | int SSL_pending(const SSL *ssl); |
12 | 12 | ||
13 | =head1 DESCRIPTION | 13 | =head1 DESCRIPTION |
14 | 14 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_set_shutdown.pod b/src/lib/libssl/src/doc/ssl/SSL_set_shutdown.pod index 6289e635d9..011a022a12 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_set_shutdown.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_set_shutdown.pod | |||
@@ -10,7 +10,7 @@ SSL_set_shutdown, SSL_get_shutdown - manipulate shutdown state of an SSL connect | |||
10 | 10 | ||
11 | void SSL_set_shutdown(SSL *ssl, int mode); | 11 | void SSL_set_shutdown(SSL *ssl, int mode); |
12 | 12 | ||
13 | int SSL_get_shutdown(SSL *ssl); | 13 | int SSL_get_shutdown(const SSL *ssl); |
14 | 14 | ||
15 | =head1 DESCRIPTION | 15 | =head1 DESCRIPTION |
16 | 16 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_shutdown.pod b/src/lib/libssl/src/doc/ssl/SSL_shutdown.pod index 6b5012be7a..89911acbca 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_shutdown.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_shutdown.pod | |||
@@ -38,7 +38,7 @@ behaviour. | |||
38 | =over 4 | 38 | =over 4 |
39 | 39 | ||
40 | =item When the application is the first party to send the "close notify" | 40 | =item When the application is the first party to send the "close notify" |
41 | alert, SSL_shutdown() will only send the alert and the set the | 41 | alert, SSL_shutdown() will only send the alert and then set the |
42 | SSL_SENT_SHUTDOWN flag (so that the session is considered good and will | 42 | SSL_SENT_SHUTDOWN flag (so that the session is considered good and will |
43 | be kept in cache). SSL_shutdown() will then return with 0. If a unidirectional | 43 | be kept in cache). SSL_shutdown() will then return with 0. If a unidirectional |
44 | shutdown is enough (the underlying connection shall be closed anyway), this | 44 | shutdown is enough (the underlying connection shall be closed anyway), this |
diff --git a/src/lib/libssl/src/doc/ssl/SSL_state_string.pod b/src/lib/libssl/src/doc/ssl/SSL_state_string.pod index b4be1aaa48..fe25d47c71 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_state_string.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_state_string.pod | |||
@@ -8,8 +8,8 @@ SSL_state_string, SSL_state_string_long - get textual description of state of an | |||
8 | 8 | ||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | const char *SSL_state_string(SSL *ssl); | 11 | const char *SSL_state_string(const SSL *ssl); |
12 | const char *SSL_state_string_long(SSL *ssl); | 12 | const char *SSL_state_string_long(const SSL *ssl); |
13 | 13 | ||
14 | =head1 DESCRIPTION | 14 | =head1 DESCRIPTION |
15 | 15 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_want.pod b/src/lib/libssl/src/doc/ssl/SSL_want.pod index 50cc89db80..c0059c0d4a 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_want.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_want.pod | |||
@@ -8,11 +8,11 @@ SSL_want, SSL_want_nothing, SSL_want_read, SSL_want_write, SSL_want_x509_lookup | |||
8 | 8 | ||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | int SSL_want(SSL *ssl); | 11 | int SSL_want(const SSL *ssl); |
12 | int SSL_want_nothing(SSL *ssl); | 12 | int SSL_want_nothing(const SSL *ssl); |
13 | int SSL_want_read(SSL *ssl); | 13 | int SSL_want_read(const SSL *ssl); |
14 | int SSL_want_write(SSL *ssl); | 14 | int SSL_want_write(const SSL *ssl); |
15 | int SSL_want_x509_lookup(SSL *ssl); | 15 | int SSL_want_x509_lookup(const SSL *ssl); |
16 | 16 | ||
17 | =head1 DESCRIPTION | 17 | =head1 DESCRIPTION |
18 | 18 | ||
diff --git a/src/lib/libssl/src/doc/ssl/d2i_SSL_SESSION.pod b/src/lib/libssl/src/doc/ssl/d2i_SSL_SESSION.pod index 0321a5a36f..81d276477f 100644 --- a/src/lib/libssl/src/doc/ssl/d2i_SSL_SESSION.pod +++ b/src/lib/libssl/src/doc/ssl/d2i_SSL_SESSION.pod | |||
@@ -8,7 +8,7 @@ d2i_SSL_SESSION, i2d_SSL_SESSION - convert SSL_SESSION object from/to ASN1 repre | |||
8 | 8 | ||
9 | #include <openssl/ssl.h> | 9 | #include <openssl/ssl.h> |
10 | 10 | ||
11 | SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, unsigned char **pp, long length); | 11 | SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp, long length); |
12 | int i2d_SSL_SESSION(SSL_SESSION *in, unsigned char **pp); | 12 | int i2d_SSL_SESSION(SSL_SESSION *in, unsigned char **pp); |
13 | 13 | ||
14 | =head1 DESCRIPTION | 14 | =head1 DESCRIPTION |
diff --git a/src/lib/libssl/src/doc/ssl/ssl.pod b/src/lib/libssl/src/doc/ssl/ssl.pod index 4d7a6b7e2b..b41f3e3645 100644 --- a/src/lib/libssl/src/doc/ssl/ssl.pod +++ b/src/lib/libssl/src/doc/ssl/ssl.pod | |||
@@ -213,7 +213,7 @@ protocol context defined in the B<SSL_CTX> structure. | |||
213 | 213 | ||
214 | =item int B<SSL_CTX_add_session>(SSL_CTX *ctx, SSL_SESSION *c); | 214 | =item int B<SSL_CTX_add_session>(SSL_CTX *ctx, SSL_SESSION *c); |
215 | 215 | ||
216 | =item int B<SSL_CTX_check_private_key>(SSL_CTX *ctx); | 216 | =item int B<SSL_CTX_check_private_key>(const SSL_CTX *ctx); |
217 | 217 | ||
218 | =item long B<SSL_CTX_ctrl>(SSL_CTX *ctx, int cmd, long larg, char *parg); | 218 | =item long B<SSL_CTX_ctrl>(SSL_CTX *ctx, int cmd, long larg, char *parg); |
219 | 219 | ||
@@ -225,23 +225,23 @@ protocol context defined in the B<SSL_CTX> structure. | |||
225 | 225 | ||
226 | =item X509_STORE *B<SSL_CTX_get_cert_store>(SSL_CTX *ctx); | 226 | =item X509_STORE *B<SSL_CTX_get_cert_store>(SSL_CTX *ctx); |
227 | 227 | ||
228 | =item STACK *B<SSL_CTX_get_client_CA_list>(SSL_CTX *ctx); | 228 | =item STACK *B<SSL_CTX_get_client_CA_list>(const SSL_CTX *ctx); |
229 | 229 | ||
230 | =item int (*B<SSL_CTX_get_client_cert_cb>(SSL_CTX *ctx))(SSL *ssl, X509 **x509, EVP_PKEY **pkey); | 230 | =item int (*B<SSL_CTX_get_client_cert_cb>(SSL_CTX *ctx))(SSL *ssl, X509 **x509, EVP_PKEY **pkey); |
231 | 231 | ||
232 | =item char *B<SSL_CTX_get_ex_data>(SSL_CTX *s, int idx); | 232 | =item char *B<SSL_CTX_get_ex_data>(const SSL_CTX *s, int idx); |
233 | 233 | ||
234 | =item int B<SSL_CTX_get_ex_new_index>(long argl, char *argp, int (*new_func);(void), int (*dup_func)(void), void (*free_func)(void)) | 234 | =item int B<SSL_CTX_get_ex_new_index>(long argl, char *argp, int (*new_func);(void), int (*dup_func)(void), void (*free_func)(void)) |
235 | 235 | ||
236 | =item void (*B<SSL_CTX_get_info_callback>(SSL_CTX *ctx))(SSL *ssl, int cb, int ret); | 236 | =item void (*B<SSL_CTX_get_info_callback>(SSL_CTX *ctx))(SSL *ssl, int cb, int ret); |
237 | 237 | ||
238 | =item int B<SSL_CTX_get_quiet_shutdown>(SSL_CTX *ctx); | 238 | =item int B<SSL_CTX_get_quiet_shutdown>(const SSL_CTX *ctx); |
239 | 239 | ||
240 | =item int B<SSL_CTX_get_session_cache_mode>(SSL_CTX *ctx); | 240 | =item int B<SSL_CTX_get_session_cache_mode>(SSL_CTX *ctx); |
241 | 241 | ||
242 | =item long B<SSL_CTX_get_timeout>(SSL_CTX *ctx); | 242 | =item long B<SSL_CTX_get_timeout>(const SSL_CTX *ctx); |
243 | 243 | ||
244 | =item int (*B<SSL_CTX_get_verify_callback>(SSL_CTX *ctx))(int ok, X509_STORE_CTX *ctx); | 244 | =item int (*B<SSL_CTX_get_verify_callback>(const SSL_CTX *ctx))(int ok, X509_STORE_CTX *ctx); |
245 | 245 | ||
246 | =item int B<SSL_CTX_get_verify_mode>(SSL_CTX *ctx); | 246 | =item int B<SSL_CTX_get_verify_mode>(SSL_CTX *ctx); |
247 | 247 | ||
@@ -383,27 +383,27 @@ sessions defined in the B<SSL_SESSION> structures. | |||
383 | 383 | ||
384 | =over 4 | 384 | =over 4 |
385 | 385 | ||
386 | =item int B<SSL_SESSION_cmp>(SSL_SESSION *a, SSL_SESSION *b); | 386 | =item int B<SSL_SESSION_cmp>(const SSL_SESSION *a, const SSL_SESSION *b); |
387 | 387 | ||
388 | =item void B<SSL_SESSION_free>(SSL_SESSION *ss); | 388 | =item void B<SSL_SESSION_free>(SSL_SESSION *ss); |
389 | 389 | ||
390 | =item char *B<SSL_SESSION_get_app_data>(SSL_SESSION *s); | 390 | =item char *B<SSL_SESSION_get_app_data>(SSL_SESSION *s); |
391 | 391 | ||
392 | =item char *B<SSL_SESSION_get_ex_data>(SSL_SESSION *s, int idx); | 392 | =item char *B<SSL_SESSION_get_ex_data>(const SSL_SESSION *s, int idx); |
393 | 393 | ||
394 | =item int B<SSL_SESSION_get_ex_new_index>(long argl, char *argp, int (*new_func);(void), int (*dup_func)(void), void (*free_func)(void)) | 394 | =item int B<SSL_SESSION_get_ex_new_index>(long argl, char *argp, int (*new_func);(void), int (*dup_func)(void), void (*free_func)(void)) |
395 | 395 | ||
396 | =item long B<SSL_SESSION_get_time>(SSL_SESSION *s); | 396 | =item long B<SSL_SESSION_get_time>(const SSL_SESSION *s); |
397 | 397 | ||
398 | =item long B<SSL_SESSION_get_timeout>(SSL_SESSION *s); | 398 | =item long B<SSL_SESSION_get_timeout>(const SSL_SESSION *s); |
399 | 399 | ||
400 | =item unsigned long B<SSL_SESSION_hash>(SSL_SESSION *a); | 400 | =item unsigned long B<SSL_SESSION_hash>(const SSL_SESSION *a); |
401 | 401 | ||
402 | =item SSL_SESSION *B<SSL_SESSION_new>(void); | 402 | =item SSL_SESSION *B<SSL_SESSION_new>(void); |
403 | 403 | ||
404 | =item int B<SSL_SESSION_print>(BIO *bp, SSL_SESSION *x); | 404 | =item int B<SSL_SESSION_print>(BIO *bp, const SSL_SESSION *x); |
405 | 405 | ||
406 | =item int B<SSL_SESSION_print_fp>(FILE *fp, SSL_SESSION *x); | 406 | =item int B<SSL_SESSION_print_fp>(FILE *fp, const SSL_SESSION *x); |
407 | 407 | ||
408 | =item void B<SSL_SESSION_set_app_data>(SSL_SESSION *s, char *a); | 408 | =item void B<SSL_SESSION_set_app_data>(SSL_SESSION *s, char *a); |
409 | 409 | ||
@@ -438,7 +438,7 @@ connection defined in the B<SSL> structure. | |||
438 | 438 | ||
439 | =item char *B<SSL_alert_type_string_long>(int value); | 439 | =item char *B<SSL_alert_type_string_long>(int value); |
440 | 440 | ||
441 | =item int B<SSL_check_private_key>(SSL *ssl); | 441 | =item int B<SSL_check_private_key>(const SSL *ssl); |
442 | 442 | ||
443 | =item void B<SSL_clear>(SSL *ssl); | 443 | =item void B<SSL_clear>(SSL *ssl); |
444 | 444 | ||
@@ -446,7 +446,7 @@ connection defined in the B<SSL> structure. | |||
446 | 446 | ||
447 | =item int B<SSL_connect>(SSL *ssl); | 447 | =item int B<SSL_connect>(SSL *ssl); |
448 | 448 | ||
449 | =item void B<SSL_copy_session_id>(SSL *t, SSL *f); | 449 | =item void B<SSL_copy_session_id>(SSL *t, const SSL *f); |
450 | 450 | ||
451 | =item long B<SSL_ctrl>(SSL *ssl, int cmd, long larg, char *parg); | 451 | =item long B<SSL_ctrl>(SSL *ssl, int cmd, long larg, char *parg); |
452 | 452 | ||
@@ -458,77 +458,77 @@ connection defined in the B<SSL> structure. | |||
458 | 458 | ||
459 | =item void B<SSL_free>(SSL *ssl); | 459 | =item void B<SSL_free>(SSL *ssl); |
460 | 460 | ||
461 | =item SSL_CTX *B<SSL_get_SSL_CTX>(SSL *ssl); | 461 | =item SSL_CTX *B<SSL_get_SSL_CTX>(const SSL *ssl); |
462 | 462 | ||
463 | =item char *B<SSL_get_app_data>(SSL *ssl); | 463 | =item char *B<SSL_get_app_data>(SSL *ssl); |
464 | 464 | ||
465 | =item X509 *B<SSL_get_certificate>(SSL *ssl); | 465 | =item X509 *B<SSL_get_certificate>(const SSL *ssl); |
466 | 466 | ||
467 | =item const char *B<SSL_get_cipher>(SSL *ssl); | 467 | =item const char *B<SSL_get_cipher>(const SSL *ssl); |
468 | 468 | ||
469 | =item int B<SSL_get_cipher_bits>(SSL *ssl, int *alg_bits); | 469 | =item int B<SSL_get_cipher_bits>(const SSL *ssl, int *alg_bits); |
470 | 470 | ||
471 | =item char *B<SSL_get_cipher_list>(SSL *ssl, int n); | 471 | =item char *B<SSL_get_cipher_list>(const SSL *ssl, int n); |
472 | 472 | ||
473 | =item char *B<SSL_get_cipher_name>(SSL *ssl); | 473 | =item char *B<SSL_get_cipher_name>(const SSL *ssl); |
474 | 474 | ||
475 | =item char *B<SSL_get_cipher_version>(SSL *ssl); | 475 | =item char *B<SSL_get_cipher_version>(const SSL *ssl); |
476 | 476 | ||
477 | =item STACK *B<SSL_get_ciphers>(SSL *ssl); | 477 | =item STACK *B<SSL_get_ciphers>(const SSL *ssl); |
478 | 478 | ||
479 | =item STACK *B<SSL_get_client_CA_list>(SSL *ssl); | 479 | =item STACK *B<SSL_get_client_CA_list>(const SSL *ssl); |
480 | 480 | ||
481 | =item SSL_CIPHER *B<SSL_get_current_cipher>(SSL *ssl); | 481 | =item SSL_CIPHER *B<SSL_get_current_cipher>(SSL *ssl); |
482 | 482 | ||
483 | =item long B<SSL_get_default_timeout>(SSL *ssl); | 483 | =item long B<SSL_get_default_timeout>(const SSL *ssl); |
484 | 484 | ||
485 | =item int B<SSL_get_error>(SSL *ssl, int i); | 485 | =item int B<SSL_get_error>(const SSL *ssl, int i); |
486 | 486 | ||
487 | =item char *B<SSL_get_ex_data>(SSL *ssl, int idx); | 487 | =item char *B<SSL_get_ex_data>(const SSL *ssl, int idx); |
488 | 488 | ||
489 | =item int B<SSL_get_ex_data_X509_STORE_CTX_idx>(void); | 489 | =item int B<SSL_get_ex_data_X509_STORE_CTX_idx>(void); |
490 | 490 | ||
491 | =item int B<SSL_get_ex_new_index>(long argl, char *argp, int (*new_func);(void), int (*dup_func)(void), void (*free_func)(void)) | 491 | =item int B<SSL_get_ex_new_index>(long argl, char *argp, int (*new_func);(void), int (*dup_func)(void), void (*free_func)(void)) |
492 | 492 | ||
493 | =item int B<SSL_get_fd>(SSL *ssl); | 493 | =item int B<SSL_get_fd>(const SSL *ssl); |
494 | 494 | ||
495 | =item void (*B<SSL_get_info_callback>(SSL *ssl);)(void) | 495 | =item void (*B<SSL_get_info_callback>(const SSL *ssl);)() |
496 | 496 | ||
497 | =item STACK *B<SSL_get_peer_cert_chain>(SSL *ssl); | 497 | =item STACK *B<SSL_get_peer_cert_chain>(const SSL *ssl); |
498 | 498 | ||
499 | =item X509 *B<SSL_get_peer_certificate>(SSL *ssl); | 499 | =item X509 *B<SSL_get_peer_certificate>(const SSL *ssl); |
500 | 500 | ||
501 | =item EVP_PKEY *B<SSL_get_privatekey>(SSL *ssl); | 501 | =item EVP_PKEY *B<SSL_get_privatekey>(SSL *ssl); |
502 | 502 | ||
503 | =item int B<SSL_get_quiet_shutdown>(SSL *ssl); | 503 | =item int B<SSL_get_quiet_shutdown>(const SSL *ssl); |
504 | 504 | ||
505 | =item BIO *B<SSL_get_rbio>(SSL *ssl); | 505 | =item BIO *B<SSL_get_rbio>(const SSL *ssl); |
506 | 506 | ||
507 | =item int B<SSL_get_read_ahead>(SSL *ssl); | 507 | =item int B<SSL_get_read_ahead>(const SSL *ssl); |
508 | 508 | ||
509 | =item SSL_SESSION *B<SSL_get_session>(SSL *ssl); | 509 | =item SSL_SESSION *B<SSL_get_session>(const SSL *ssl); |
510 | 510 | ||
511 | =item char *B<SSL_get_shared_ciphers>(SSL *ssl, char *buf, int len); | 511 | =item char *B<SSL_get_shared_ciphers>(const SSL *ssl, char *buf, int len); |
512 | 512 | ||
513 | =item int B<SSL_get_shutdown>(SSL *ssl); | 513 | =item int B<SSL_get_shutdown>(const SSL *ssl); |
514 | 514 | ||
515 | =item SSL_METHOD *B<SSL_get_ssl_method>(SSL *ssl); | 515 | =item SSL_METHOD *B<SSL_get_ssl_method>(SSL *ssl); |
516 | 516 | ||
517 | =item int B<SSL_get_state>(SSL *ssl); | 517 | =item int B<SSL_get_state>(const SSL *ssl); |
518 | 518 | ||
519 | =item long B<SSL_get_time>(SSL *ssl); | 519 | =item long B<SSL_get_time>(const SSL *ssl); |
520 | 520 | ||
521 | =item long B<SSL_get_timeout>(SSL *ssl); | 521 | =item long B<SSL_get_timeout>(const SSL *ssl); |
522 | 522 | ||
523 | =item int (*B<SSL_get_verify_callback>(SSL *ssl);)(void) | 523 | =item int (*B<SSL_get_verify_callback>(const SSL *ssl))(int,X509_STORE_CTX *) |
524 | 524 | ||
525 | =item int B<SSL_get_verify_mode>(SSL *ssl); | 525 | =item int B<SSL_get_verify_mode>(const SSL *ssl); |
526 | 526 | ||
527 | =item long B<SSL_get_verify_result>(SSL *ssl); | 527 | =item long B<SSL_get_verify_result>(const SSL *ssl); |
528 | 528 | ||
529 | =item char *B<SSL_get_version>(SSL *ssl); | 529 | =item char *B<SSL_get_version>(const SSL *ssl); |
530 | 530 | ||
531 | =item BIO *B<SSL_get_wbio>(SSL *ssl); | 531 | =item BIO *B<SSL_get_wbio>(const SSL *ssl); |
532 | 532 | ||
533 | =item int B<SSL_in_accept_init>(SSL *ssl); | 533 | =item int B<SSL_in_accept_init>(SSL *ssl); |
534 | 534 | ||
@@ -550,7 +550,7 @@ connection defined in the B<SSL> structure. | |||
550 | 550 | ||
551 | =item int B<SSL_peek>(SSL *ssl, void *buf, int num); | 551 | =item int B<SSL_peek>(SSL *ssl, void *buf, int num); |
552 | 552 | ||
553 | =item int B<SSL_pending>(SSL *ssl); | 553 | =item int B<SSL_pending>(const SSL *ssl); |
554 | 554 | ||
555 | =item int B<SSL_read>(SSL *ssl, void *buf, int num); | 555 | =item int B<SSL_read>(SSL *ssl, void *buf, int num); |
556 | 556 | ||
@@ -610,11 +610,11 @@ connection defined in the B<SSL> structure. | |||
610 | 610 | ||
611 | =item int B<SSL_shutdown>(SSL *ssl); | 611 | =item int B<SSL_shutdown>(SSL *ssl); |
612 | 612 | ||
613 | =item int B<SSL_state>(SSL *ssl); | 613 | =item int B<SSL_state>(const SSL *ssl); |
614 | 614 | ||
615 | =item char *B<SSL_state_string>(SSL *ssl); | 615 | =item char *B<SSL_state_string>(const SSL *ssl); |
616 | 616 | ||
617 | =item char *B<SSL_state_string_long>(SSL *ssl); | 617 | =item char *B<SSL_state_string_long>(const SSL *ssl); |
618 | 618 | ||
619 | =item long B<SSL_total_renegotiations>(SSL *ssl); | 619 | =item long B<SSL_total_renegotiations>(SSL *ssl); |
620 | 620 | ||
@@ -636,17 +636,17 @@ connection defined in the B<SSL> structure. | |||
636 | 636 | ||
637 | =item int B<SSL_use_certificate_file>(SSL *ssl, char *file, int type); | 637 | =item int B<SSL_use_certificate_file>(SSL *ssl, char *file, int type); |
638 | 638 | ||
639 | =item int B<SSL_version>(SSL *ssl); | 639 | =item int B<SSL_version>(const SSL *ssl); |
640 | 640 | ||
641 | =item int B<SSL_want>(SSL *ssl); | 641 | =item int B<SSL_want>(const SSL *ssl); |
642 | 642 | ||
643 | =item int B<SSL_want_nothing>(SSL *ssl); | 643 | =item int B<SSL_want_nothing>(const SSL *ssl); |
644 | 644 | ||
645 | =item int B<SSL_want_read>(SSL *ssl); | 645 | =item int B<SSL_want_read>(const SSL *ssl); |
646 | 646 | ||
647 | =item int B<SSL_want_write>(SSL *ssl); | 647 | =item int B<SSL_want_write>(const SSL *ssl); |
648 | 648 | ||
649 | =item int B<SSL_want_x509_lookup>(s); | 649 | =item int B<SSL_want_x509_lookup>(const SSL *ssl); |
650 | 650 | ||
651 | =item int B<SSL_write>(SSL *ssl, const void *buf, int num); | 651 | =item int B<SSL_write>(SSL *ssl, const void *buf, int num); |
652 | 652 | ||
diff --git a/src/lib/libssl/src/doc/standards.txt b/src/lib/libssl/src/doc/standards.txt index edbe2f3a57..f6675b574b 100644 --- a/src/lib/libssl/src/doc/standards.txt +++ b/src/lib/libssl/src/doc/standards.txt | |||
@@ -88,6 +88,10 @@ PKCS#12: Personal Information Exchange Syntax Standard, version 1.0. | |||
88 | (Format: TXT=143173 bytes) (Obsoletes RFC2437) (Status: | 88 | (Format: TXT=143173 bytes) (Obsoletes RFC2437) (Status: |
89 | INFORMATIONAL) | 89 | INFORMATIONAL) |
90 | 90 | ||
91 | 3820 Internet X.509 Public Key Infrastructure (PKI) Proxy Certificate | ||
92 | Profile. S. Tuecke, V. Welch, D. Engert, L. Pearlman, M. Thompson. | ||
93 | June 2004. (Format: TXT=86374 bytes) (Status: PROPOSED STANDARD) | ||
94 | |||
91 | 95 | ||
92 | Related: | 96 | Related: |
93 | -------- | 97 | -------- |