// 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>
#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"
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);