Changeset 7ef38d4 in mod_gnutls


Ignore:
Timestamp:
May 21, 2009, 2:48:34 PM (11 years ago)
Author:
Nokis Mavrogiannopoulos <nmav@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
0e13d67
Parents:
8663ace
git-author:
Nikos Mavrogiannopoulos <nmav@…> (05/21/09 14:48:34)
git-committer:
Nokis Mavrogiannopoulos <nmav@…> (05/21/09 14:48:34)
Message:

if private key import fails try as pkcs8 key.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_config.c

    r8663ace r7ef38d4  
    195195        gnutls_x509_privkey_import(sc->privkey_x509, &data,
    196196                                   GNUTLS_X509_FMT_PEM);
    197     if (ret != 0) {
     197
     198    if (ret < 0)
     199        ret = gnutls_x509_privkey_import_pkcs8 (sc->privkey_x509, &data, GNUTLS_X509_FMT_PEM,
     200                                                        NULL, GNUTLS_PKCS_PLAIN);
     201
     202    if (ret < 0) {
    198203        return apr_psprintf(parms->pool, "GnuTLS: Failed to Import "
    199204                            "Private Key '%s': (%d) %s", file, ret,
Note: See TracChangeset for help on using the changeset viewer.