mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-15 13:02:13 +02:00
MINOR: ssl: add an openssl version string parser
openssl_version_parser() parse a string in the OpenSSL version format which is documented here: https://www.openssl.org/docs/man1.1.1/man3/OPENSSL_VERSION_NUMBER.html The function returns an unsigned int that could be used for comparing openssl versions.
This commit is contained in:
@@ -38,8 +38,8 @@ int ssl_sock_get_dn_entry(X509_NAME *a, const struct buffer *entry, int pos,
|
||||
struct buffer *out);
|
||||
int ssl_sock_get_dn_formatted(X509_NAME *a, const struct buffer *format, struct buffer *out);
|
||||
int ssl_sock_get_dn_oneline(X509_NAME *a, struct buffer *out);
|
||||
|
||||
X509* ssl_sock_get_peer_certificate(SSL *ssl);
|
||||
unsigned int openssl_version_parser(const char *version);
|
||||
|
||||
#endif /* _HAPROXY_SSL_UTILS_H */
|
||||
#endif /* USE_OPENSSL */
|
||||
|
||||
Reference in New Issue
Block a user