* corrected files to open
authorWilfried Göesgens <willi@citadel.org>
Wed, 17 Jan 2007 14:46:09 +0000 (14:46 +0000)
committerWilfried Göesgens <willi@citadel.org>
Wed, 17 Jan 2007 14:46:09 +0000 (14:46 +0000)
citadel/serv_crypto.c

index 38e828bb9c8b6a6a234bb2c204bf69dae5725a08..e9616b8259dff62b568007d75bc5dd83ebe21fd1 100644 (file)
@@ -196,7 +196,7 @@ void init_ssl(void)
                 * there is the possibility that the key was already on disk
                 * and we didn't just generate it now.
                 */
-               fp = fopen(file_crpt_file_csr, "r");
+               fp = fopen(file_crpt_file_key, "r");
                if (fp) {
                        rsa = PEM_read_RSAPrivateKey(fp, NULL, NULL, NULL);
                        fclose(fp);
@@ -280,7 +280,7 @@ void init_ssl(void)
                /* Same deal as before: always read the key from disk because
                 * it may or may not have just been generated.
                 */
-               fp = fopen(file_crpt_file_cer, "r");
+               fp = fopen(file_crpt_file_key, "r");
                if (fp) {
                        rsa = PEM_read_RSAPrivateKey(fp, NULL, NULL, NULL);
                        fclose(fp);
@@ -295,7 +295,7 @@ void init_ssl(void)
                                EVP_PKEY_assign_RSA(pk, rsa);
                        }
 
-                       fp = fopen(file_crpt_file_cer, "r");
+                       fp = fopen(file_crpt_file_csr, "r");
                        if (fp) {
                                req = PEM_read_X509_REQ(fp, NULL, NULL, NULL);
                                fclose(fp);