ssl_cipher_get_name.pod
来自「一个用于点对点传输加密的工具包源码」· POD 代码 · 共 58 行
POD
58 行
=pod=head1 NAMESSL_CIPHER_get_name, SSL_CIPHER_get_bits, SSL_CIPHER_get_version,SSL_CIPHER_description - get SSL_CIPHER properties=head1 SYNOPSIS #include <openssl/ssl.h> const char *SSL_CIPHER_get_name(SSL_CIPHER *cipher); int SSL_CIPHER_get_bits(SSL_CIPHER *cipher, int *alg_bits); char *SSL_CIPHER_get_version(SSL_CIPHER *cipher); char *SSL_CIPHER_description(SSL_CIPHER *cipher, char *buf, int size);=head1 DESCRIPTIONSSL_CIPHER_get_name() returns a pointer to the name of B<cipher>. If theargument is the NULL pointer, a pointer to the constant value "NONE" isreturned.SSL_CIPHER_get_bits() returns the number of secret bits used for B<cipher>. IfB<alg_bits> is not NULL, it contains the number of bits processed by thechosen algorithm. If B<cipher> is NULL, 0 is returned.SSL_CIPHER_get_version() returns the protocol version for B<cipher>, currently"SSLv2", "SSLv3", or "TLSv1". If B<cipher> is NULL, "(NONE)" is returned.SSL_CIPHER_description() returns a textual description of the cipher usedinto the buffer B<buf> of length B<len> provided. B<len> must be at least128 bytes, otherwise the string "Buffer too small" is returned. If B<buf>is NULL, a buffer of 128 bytes is allocated using OPENSSL_malloc(). If theallocation fails, the string "OPENSSL_malloc Error" is returned.=head1 NOTESThe number of bits processed can be different from the secret bits. Anexport cipher like e.g. EXP-RC4-MD5 has only 40 secret bits. The algorithmdoes use the full 128 bits (which would be returned for B<alg_bits>), ofwhich however 88bits are fixed. The search space is hence only 40 bits.=head1 BUGSIf SSL_CIPHER_description() is called with B<cipher> being NULL, thelibrary crashes.=head1 RETURN VALUESSee DESCRIPTION=head1 SEE ALSOL<ssl(3)|ssl(3)>, L<SSL_get_current_cipher(3)|SSL_get_current_cipher(3)>,L<SSL_get_ciphers(3)|SSL_get_ciphers(3)>=cut
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?