summaryrefslogtreecommitdiff
path: root/include/ssl_key_handler.hpp
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2017-04-18 22:45:08 +0300
committerEd Tanous <ed.tanous@intel.com>2017-04-18 22:45:08 +0300
commit1ff48780d3e8e4bc0dee01ae0e756eb4d46a4f53 (patch)
tree59bd96554546fabbe03afb084f5068f658c93ff3 /include/ssl_key_handler.hpp
parent93f987d2383258f88fe9b9133af956bcc0f00233 (diff)
downloadbmcweb-1ff48780d3e8e4bc0dee01ae0e756eb4d46a4f53.tar.xz
incremental
Diffstat (limited to 'include/ssl_key_handler.hpp')
-rw-r--r--include/ssl_key_handler.hpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/include/ssl_key_handler.hpp b/include/ssl_key_handler.hpp
index d53c239c43..1c3e8f4bad 100644
--- a/include/ssl_key_handler.hpp
+++ b/include/ssl_key_handler.hpp
@@ -1,7 +1,5 @@
#pragma once
-#include <random>
-
#include <openssl/bio.h>
#include <openssl/dh.h>
#include <openssl/dsa.h>
@@ -12,10 +10,9 @@
#include <openssl/rand.h>
#include <openssl/rsa.h>
#include <openssl/ssl.h>
-
#include <boost/asio.hpp>
-
#include <g3log/g3log.hpp>
+#include <random>
namespace ensuressl {
static void init_openssl(void);
@@ -127,11 +124,11 @@ inline void generate_ssl_certificate(const std::string &filepath) {
name = X509_get_subject_name(x509);
X509_NAME_add_entry_by_txt(name, "C", MBSTRING_ASC, (unsigned char *)"US",
- -1, -1, 0);
+ -1, -1, 0);
X509_NAME_add_entry_by_txt(name, "O", MBSTRING_ASC,
- (unsigned char *)"Intel BMC", -1, -1, 0);
+ (unsigned char *)"Intel BMC", -1, -1, 0);
X509_NAME_add_entry_by_txt(name, "CN", MBSTRING_ASC,
- (unsigned char *)"testhost", -1, -1, 0);
+ (unsigned char *)"testhost", -1, -1, 0);
// set the CSR options
X509_set_issuer_name(x509, name);