add ssl init to common
This commit is contained in:
parent
bb75ea62b2
commit
0da32da2d8
@ -22,4 +22,5 @@ libcommon_la_SOURCES = \
|
|||||||
|
|
||||||
libcommon_la_LIBADD = \
|
libcommon_la_LIBADD = \
|
||||||
-lcrypto \
|
-lcrypto \
|
||||||
|
-lssl \
|
||||||
-lpthread
|
-lpthread
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h> /* needed for openssl headers */
|
#include <stdlib.h> /* needed for openssl headers */
|
||||||
|
#include <openssl/ssl.h>
|
||||||
|
#include <openssl/err.h>
|
||||||
#include <openssl/rc4.h>
|
#include <openssl/rc4.h>
|
||||||
#include <openssl/md5.h>
|
#include <openssl/md5.h>
|
||||||
#include <openssl/sha.h>
|
#include <openssl/sha.h>
|
||||||
@ -37,6 +39,22 @@
|
|||||||
#define OLD_RSA_GEN1
|
#define OLD_RSA_GEN1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
int
|
||||||
|
ssl_init(void)
|
||||||
|
{
|
||||||
|
SSL_load_error_strings();
|
||||||
|
SSL_library_init();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
int
|
||||||
|
ssl_finish(void)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* rc4 stuff */
|
/* rc4 stuff */
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -23,6 +23,10 @@
|
|||||||
|
|
||||||
#include "arch.h"
|
#include "arch.h"
|
||||||
|
|
||||||
|
int
|
||||||
|
ssl_init(void);
|
||||||
|
int
|
||||||
|
ssl_finish(void);
|
||||||
void* APP_CC
|
void* APP_CC
|
||||||
ssl_rc4_info_create(void);
|
ssl_rc4_info_create(void);
|
||||||
void APP_CC
|
void APP_CC
|
||||||
|
Loading…
Reference in New Issue
Block a user