make building into resip easier

This commit is contained in:
Todd A Ouska
2011-03-31 16:45:05 -07:00
parent 0604c96e0f
commit 8d38f93d8a
6 changed files with 23 additions and 8 deletions

View File

@@ -33,15 +33,16 @@
#include "prefix_hmac.h"
#endif
unsigned char* HMAC(const EVP_MD* evp_md, const void* key, int key_len,
const unsigned char* d, int n, unsigned char* md, unsigned int* md_len);
#include "evp.h"
#ifdef __cplusplus
extern "C" {
#endif
unsigned char* HMAC(const EVP_MD* evp_md, const void* key, int key_len,
const unsigned char* d, int n, unsigned char* md, unsigned int* md_len);
#ifdef __cplusplus
} /* extern "C" */

View File

@@ -26,6 +26,9 @@ void SHA1_Init(SHA_CTX*);
void SHA1_Update(SHA_CTX*, const void*, unsigned long);
void SHA1_Final(unsigned char*, SHA_CTX*);
enum {
SHA_DIGEST_LENGTH = 20
};
#ifdef __cplusplus

View File

@@ -612,6 +612,7 @@ int FreeCyaSSL(void); /* call when done to free session cache mutex */
int CyaSSL_Debugging_ON(void); /* turn logging on, only if compiled in */
void CyaSSL_Debugging_OFF(void); /* turn logging off */
int CyaSSL_negotiate(SSL* ssl); /* do accept or connect depedning on side */
int CyaSSL_set_compression(SSL* ssl); /* turn on CyaSSL data compression */
int CyaSSL_CTX_use_NTRUPrivateKey_file(SSL_CTX*, const char*); /* load NTRU
@@ -633,14 +634,12 @@ int CyaSSL_X509_get_serial_number(X509*, unsigned char*);
#endif
#endif
#if defined(NO_FILESYSTEM) || defined(MICRIUM)
int CyaSSL_CTX_load_verify_buffer(SSL_CTX*, const unsigned char*, long, int);
int CyaSSL_CTX_use_certificate_buffer(SSL_CTX*, const unsigned char*, long,int);
int CyaSSL_CTX_use_PrivateKey_buffer(SSL_CTX*, const unsigned char*, long, int);
int CyaSSL_CTX_use_certificate_chain_buffer(SSL_CTX*,const unsigned char*,long);
#endif /* NO_FILESYSTEM || MICRIUM */
/* I/O callbacks */