]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/modules/crypto/serv_crypto.c
misc style cleanup
[citadel.git] / citadel / server / modules / crypto / serv_crypto.c
index 4f16092303819a06b0adb3cc16f998c9a963eaa3..5d41fa27c924817cb29cc58c517417ba7daf996c 100644 (file)
@@ -1,12 +1,5 @@
 // Copyright (c) 1987-2022 by the citadel.org team
-//
-// This program is open source software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License version 3.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
+// This program is open source software.  Use, duplication, or disclosure is subject to the GNU General Public License v3.
 
 #include <string.h>
 #include <unistd.h>
@@ -35,7 +28,7 @@
 #include "../../server.h"
 #include "serv_crypto.h"
 #include "../../sysdep_decls.h"
-#include "../../citadel.h"
+#include "../../citadel_defs.h"
 #include "../../config.h"
 #include "../../ctdl_module.h"
 
@@ -159,7 +152,8 @@ void generate_certificate(char *keyfilename, char *certfilename) {
        X509_REQ_set_subject_name(certificate_signing_request, name);
 
        // Sign the CSR
-       if (!X509_REQ_sign(certificate_signing_request, public_key, EVP_md5())) {
+       //if (!X509_REQ_sign(certificate_signing_request, public_key, EVP_md5())) {
+       if (!X509_REQ_sign(certificate_signing_request, public_key, EVP_md5()) , 0) {
                syslog(LOG_ERR, "crypto: X509_REQ_sign(): error");
                X509_REQ_free(certificate_signing_request);
                RSA_free(private_key);