1
0
mirror of https://github.com/libp2p/go-openssl.git synced 2025-04-25 17:50:23 +08:00

move defines to shim header

This commit is contained in:
Andrew Harding 2017-06-06 08:23:50 -06:00
parent 37dddbfb29
commit 1ea168d098
2 changed files with 8 additions and 8 deletions

8
shim.c
View File

@ -15,14 +15,6 @@
*
*/
#ifndef SSL_MODE_RELEASE_BUFFERS
#define SSL_MODE_RELEASE_BUFFERS 0
#endif
#ifndef SSL_OP_NO_COMPRESSION
#define SSL_OP_NO_COMPRESSION 0
#endif
#include <string.h>
#include <openssl/conf.h>

8
shim.h
View File

@ -28,6 +28,14 @@
#include <openssl/ssl.h>
#include <openssl/x509v3.h>
#ifndef SSL_MODE_RELEASE_BUFFERS
#define SSL_MODE_RELEASE_BUFFERS 0
#endif
#ifndef SSL_OP_NO_COMPRESSION
#define SSL_OP_NO_COMPRESSION 0
#endif
/* shim methods */
extern int X_shim_init();