Commit a45c7956 authored by Joe Orton's avatar Joe Orton
Browse files

* modules/ssl/ssl_engine_pphrase.c: Fix linking against OpenSSL without

  ENGINE support.

PR: 62563


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1836547 13f79535-47bb-0310-9956-ffa450edef68
parent df678107
Loading
Loading
Loading
Loading
+5 −1
Changes for modules/ssl/ssl_engine_pphrase.c: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -803,6 +803,7 @@ static UI_METHOD *get_passphrase_ui(apr_pool_t *p)
    
    return ui_method;
}
#endif


apr_status_t modssl_load_engine_keypair(server_rec *s, apr_pool_t *p,
@@ -810,6 +811,7 @@ apr_status_t modssl_load_engine_keypair(server_rec *s, apr_pool_t *p,
                                        const char *certid, const char *keyid,
                                        X509 **pubkey, EVP_PKEY **privkey)
{
#if defined(HAVE_OPENSSL_ENGINE_H) && defined(HAVE_ENGINE_INIT)
    const char *c, *scheme;
    ENGINE *e;
    UI_METHOD *ui_method = get_passphrase_ui(p);
@@ -883,5 +885,7 @@ apr_status_t modssl_load_engine_keypair(server_rec *s, apr_pool_t *p,
    ENGINE_free(e);

    return APR_SUCCESS;
}
#else
    return APR_ENOTIMPL;
#endif
}