|
29 | 29 | static const long Cryptography_HAS_GENERIC_DTLS_METHOD;
|
30 | 30 | static const long Cryptography_HAS_SIGALGS;
|
31 | 31 | static const long Cryptography_HAS_PSK;
|
| 32 | +static const long Cryptography_HAS_CIPHER_DETAILS; |
32 | 33 |
|
33 | 34 | /* Internally invented symbol to tell us if SNI is supported */
|
34 | 35 | static const long Cryptography_HAS_TLSEXT_HOSTNAME;
|
|
284 | 285 | /* Information about actually used cipher */
|
285 | 286 | const char *SSL_CIPHER_get_name(const SSL_CIPHER *);
|
286 | 287 | int SSL_CIPHER_get_bits(const SSL_CIPHER *, int *);
|
| 288 | +uint32_t SSL_CIPHER_get_id(const SSL_CIPHER *); |
| 289 | +int SSL_CIPHER_is_aead(const SSL_CIPHER *); |
| 290 | +int SSL_CIPHER_get_cipher_nid(const SSL_CIPHER *); |
| 291 | +int SSL_CIPHER_get_digest_nid(const SSL_CIPHER *); |
| 292 | +int SSL_CIPHER_get_kx_nid(const SSL_CIPHER *); |
| 293 | +int SSL_CIPHER_get_auth_nid(const SSL_CIPHER *); |
287 | 294 |
|
288 | 295 | size_t SSL_get_finished(const SSL *, void *, size_t);
|
289 | 296 | size_t SSL_get_peer_finished(const SSL *, void *, size_t);
|
|
790 | 797 |
|
791 | 798 | int (*SSL_extension_supported)(unsigned int) = NULL;
|
792 | 799 | #endif
|
| 800 | +
|
| 801 | +#if CRYPTOGRAPHY_OPENSSL_LESS_THAN_110 && !CRYPTOGRAPHY_LIBRESSL_27_OR_GREATER |
| 802 | +int (*SSL_CIPHER_is_aead)(const SSL_CIPHER *) = NULL; |
| 803 | +int (*SSL_CIPHER_get_cipher_nid)(const SSL_CIPHER *) = NULL; |
| 804 | +int (*SSL_CIPHER_get_digest_nid)(const SSL_CIPHER *) = NULL; |
| 805 | +int (*SSL_CIPHER_get_kx_nid)(const SSL_CIPHER *) = NULL; |
| 806 | +int (*SSL_CIPHER_get_auth_nid)(const SSL_CIPHER *) = NULL; |
| 807 | +static const long Cryptography_HAS_CIPHER_DETAILS = 0; |
| 808 | +#else |
| 809 | +static const long Cryptography_HAS_CIPHER_DETAILS = 1; |
| 810 | +#endif |
| 811 | +
|
793 | 812 | """
|
0 commit comments