[Bug 214691] net/qt4-network: OpenSSL 1.1 compatibility

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Oct 7 23:10:45 BST 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214691

--- Comment #13 from Antoine Brodin <antoine at FreeBSD.org> ---
Looking at qt5-network,

- they used X509_getm_notBefore and X509_getm_notAfter,  not
X509_get0_notBefore and X509_get0_notAfter

- this has to be added to src/network/ssl/qsslsocket_openssl_symbols.cpp , with
the right #if directives:

DEFINEFUNC(int, EVP_PKEY_base_id, EVP_PKEY *a, a, return NID_undef, return)
DEFINEFUNC(int, RSA_bits, RSA *a, a, return 0, return)
DEFINEFUNC(int, DSA_bits, DSA *a, a, return 0, return)
DEFINEFUNC2(unsigned long, SSL_CTX_set_options, SSL_CTX *ctx, ctx, unsigned
long op, op, return 0, return)
DEFINEFUNC(ASN1_TIME *, X509_getm_notBefore, X509 *a, a, return 0, return)
DEFINEFUNC(ASN1_TIME *, X509_getm_notAfter, X509 *a, a, return 0, return)
DEFINEFUNC(long, X509_get_version, X509 *a, a, return -1, return)
DEFINEFUNC(EVP_PKEY *, X509_get_pubkey, X509 *a, a, return 0, return)
DEFINEFUNC(const EVP_MD *, EVP_sha1, DUMMYARG, DUMMYARG, return 0, return)
DEFINEFUNC2(int, SSL_CIPHER_get_bits, const SSL_CIPHER *a, a, int *b, b, return
0, return)
DEFINEFUNC(X509_STORE *, SSL_CTX_get_cert_store, const SSL_CTX *a, a, return 0,
return)
DEFINEFUNC4(int, X509_digest, const X509 *x509, x509, const EVP_MD *type, type,
unsigned char *md, md, unsigned int *len, len, return -1, return)
DEFINEFUNC(ASN1_INTEGER *, X509_get_serialNumber, X509 *a, a, return 0, return)

    RESOLVEFUNC(EVP_PKEY_base_id)
    RESOLVEFUNC(RSA_bits)
    RESOLVEFUNC(SSL_CTX_set_options)
    RESOLVEFUNC(X509_getm_notBefore)
    RESOLVEFUNC(X509_getm_notAfter)
    RESOLVEFUNC(X509_get_version)
    RESOLVEFUNC(X509_get_pubkey)
    RESOLVEFUNC(DSA_bits)
    RESOLVEFUNC(EVP_sha1)
    RESOLVEFUNC(SSL_CIPHER_get_bits)
    RESOLVEFUNC(SSL_CTX_get_cert_store)
    RESOLVEFUNC(X509_digest)
    RESOLVEFUNC(X509_get_serialNumber)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-freebsd mailing list