]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/modules/smtp/dkim.c
Fix bug in ctdlload import of email addresses.
[citadel.git] / citadel / server / modules / smtp / dkim.c
index f2a5d9d25aa8cdd0d2d9c6b4bec4d2751c90e0cb..4099e0ea6ffcea371426b00533ae84be2bcfb34f 100644 (file)
@@ -379,7 +379,7 @@ EVP_PKEY *dkim_import_key(char *pkey_in) {
        }
 
        // Load the private key into an OpenSSL "BIO" structure
-       BIO *bufio = BIO_new_mem_buf((void*)pkey_with_newlines, strlen(pkey_with_newlines));
+       BIO *bufio = BIO_new_mem_buf((void *)pkey_with_newlines, strlen(pkey_with_newlines));
        if (bufio == NULL) {
                syslog(LOG_ERR, "dkim: BIO_new_mem_buf() failed");
                free(pkey_with_newlines);
@@ -399,7 +399,7 @@ EVP_PKEY *dkim_import_key(char *pkey_in) {
        BIO_free(bufio);
 
        if (pkey == NULL) {
-               syslog(LOG_ERR, "dkim: PEM_read_bio_PrivateKey() failed");
+               syslog(LOG_ERR, "dkim: PEM_read_bio_PrivateKey() failed with error 0x%lx", ERR_get_error());
        }
 
        return(pkey);