@@ -124,8 +124,8 @@ qa_init(const struct qa_conf* conf)
bio_out = BIO_new_fp(stdout, BIO_NOCLOSE);
bio_err = BIO_new_fp(stderr, BIO_NOCLOSE);
- /* Initialize SSL Library by registering algorithms. */
- SSL_library_init();
+
+ QA_library_init();
if (!conf->attacks) select_all_questions();
else select_question(conf->attacks);
@@ -11,8 +11,17 @@
#include <string.h>
#include <bsd/sys/queue.h>
+#include <openssl/ssl.h>
#include "qa/questions/questions.h"
+void QA_library_init(void)
+{
+ /* Initialize SSL Library by registering algorithms. */
+ SSL_library_init();
+ SSL_load_error_strings();
+}
/**
* \brief Select a single question to be used.
*
@@ -41,6 +41,8 @@ LIST_HEAD(listhead, qa_question) questions;
void select_question(const char *);
void select_all_questions(void);
+void QA_library_init(void);
#define REGISTER_QUESTION(q) \
do { \
extern struct qa_question q; \