Resolve conflicts after import of OpenSSL 0.9.8e.
This commit is contained in:
parent
03b688114f
commit
1d1b15c8bf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167615
@ -67,6 +67,9 @@ void ENGINE_load_builtin_engines(void)
|
|||||||
* *no* builtin implementations). */
|
* *no* builtin implementations). */
|
||||||
#if 0
|
#if 0
|
||||||
ENGINE_load_openssl();
|
ENGINE_load_openssl();
|
||||||
|
#endif
|
||||||
|
#if !defined(OPENSSL_NO_HW) && !defined(OPENSSL_NO_HW_PADLOCK)
|
||||||
|
ENGINE_load_padlock();
|
||||||
#endif
|
#endif
|
||||||
ENGINE_load_dynamic();
|
ENGINE_load_dynamic();
|
||||||
#ifndef OPENSSL_NO_STATIC_ENGINE
|
#ifndef OPENSSL_NO_STATIC_ENGINE
|
||||||
@ -95,16 +98,15 @@ void ENGINE_load_builtin_engines(void)
|
|||||||
#ifndef OPENSSL_NO_HW_UBSEC
|
#ifndef OPENSSL_NO_HW_UBSEC
|
||||||
ENGINE_load_ubsec();
|
ENGINE_load_ubsec();
|
||||||
#endif
|
#endif
|
||||||
#ifndef OPENSSL_NO_HW_PADLOCK
|
|
||||||
ENGINE_load_padlock();
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#if defined(__OpenBSD__) || defined(__FreeBSD__)
|
|
||||||
ENGINE_load_cryptodev();
|
|
||||||
#endif
|
#endif
|
||||||
#if !defined(OPENSSL_NO_GMP) && !defined(OPENSSL_NO_HW_GMP)
|
#if !defined(OPENSSL_NO_GMP) && !defined(OPENSSL_NO_HW_GMP)
|
||||||
ENGINE_load_gmp();
|
ENGINE_load_gmp();
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
#ifndef OPENSSL_NO_HW
|
||||||
|
#if defined(__OpenBSD__) || defined(__FreeBSD__)
|
||||||
|
ENGINE_load_cryptodev();
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -436,8 +436,8 @@ static inline void *name(size_t cnt, \
|
|||||||
rep_xcrypt "\n" \
|
rep_xcrypt "\n" \
|
||||||
" popl %%ebx" \
|
" popl %%ebx" \
|
||||||
: "=a"(iv), "=c"(cnt), "=D"(out), "=S"(inp) \
|
: "=a"(iv), "=c"(cnt), "=D"(out), "=S"(inp) \
|
||||||
: "0"(cdata), "1"(cnt), "2"(out), "3"(inp) \
|
: "0"(cdata), "1"(cnt), "2"(out), "3"(inp), "m"(*cdata) \
|
||||||
: "edx", "cc"); \
|
: "edx", "cc", "memory"); \
|
||||||
return iv; \
|
return iv; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,10 +97,6 @@
|
|||||||
|
|
||||||
void ERR_load_crypto_strings(void)
|
void ERR_load_crypto_strings(void)
|
||||||
{
|
{
|
||||||
static int done=0;
|
|
||||||
|
|
||||||
if (done) return;
|
|
||||||
done=1;
|
|
||||||
#ifndef OPENSSL_NO_ERR
|
#ifndef OPENSSL_NO_ERR
|
||||||
ERR_load_ERR_strings(); /* include error strings for SYSerr */
|
ERR_load_ERR_strings(); /* include error strings for SYSerr */
|
||||||
ERR_load_BN_strings();
|
ERR_load_BN_strings();
|
||||||
|
@ -429,36 +429,36 @@ typedef int (EVP_PBE_KEYGEN)(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
|
|||||||
#define EVP_get_cipherbynid(a) EVP_get_cipherbyname(OBJ_nid2sn(a))
|
#define EVP_get_cipherbynid(a) EVP_get_cipherbyname(OBJ_nid2sn(a))
|
||||||
#define EVP_get_cipherbyobj(a) EVP_get_cipherbynid(OBJ_obj2nid(a))
|
#define EVP_get_cipherbyobj(a) EVP_get_cipherbynid(OBJ_obj2nid(a))
|
||||||
|
|
||||||
#define EVP_MD_type(e) ((e)->type)
|
int EVP_MD_type(const EVP_MD *md);
|
||||||
#define EVP_MD_nid(e) EVP_MD_type(e)
|
#define EVP_MD_nid(e) EVP_MD_type(e)
|
||||||
#define EVP_MD_name(e) OBJ_nid2sn(EVP_MD_nid(e))
|
#define EVP_MD_name(e) OBJ_nid2sn(EVP_MD_nid(e))
|
||||||
#define EVP_MD_pkey_type(e) ((e)->pkey_type)
|
int EVP_MD_pkey_type(const EVP_MD *md);
|
||||||
#define EVP_MD_size(e) ((e)->md_size)
|
int EVP_MD_size(const EVP_MD *md);
|
||||||
#define EVP_MD_block_size(e) ((e)->block_size)
|
int EVP_MD_block_size(const EVP_MD *md);
|
||||||
|
|
||||||
#define EVP_MD_CTX_md(e) ((e)->digest)
|
const EVP_MD * EVP_MD_CTX_md(const EVP_MD_CTX *ctx);
|
||||||
#define EVP_MD_CTX_size(e) EVP_MD_size((e)->digest)
|
#define EVP_MD_CTX_size(e) EVP_MD_size(EVP_MD_CTX_md(e))
|
||||||
#define EVP_MD_CTX_block_size(e) EVP_MD_block_size((e)->digest)
|
#define EVP_MD_CTX_block_size(e) EVP_MD_block_size(EVP_MD_CTX_md(e))
|
||||||
#define EVP_MD_CTX_type(e) EVP_MD_type((e)->digest)
|
#define EVP_MD_CTX_type(e) EVP_MD_type(EVP_MD_CTX_md(e))
|
||||||
|
|
||||||
#define EVP_CIPHER_nid(e) ((e)->nid)
|
int EVP_CIPHER_nid(const EVP_CIPHER *cipher);
|
||||||
#define EVP_CIPHER_name(e) OBJ_nid2sn(EVP_CIPHER_nid(e))
|
#define EVP_CIPHER_name(e) OBJ_nid2sn(EVP_CIPHER_nid(e))
|
||||||
#define EVP_CIPHER_block_size(e) ((e)->block_size)
|
int EVP_CIPHER_block_size(const EVP_CIPHER *cipher);
|
||||||
#define EVP_CIPHER_key_length(e) ((e)->key_len)
|
int EVP_CIPHER_key_length(const EVP_CIPHER *cipher);
|
||||||
#define EVP_CIPHER_iv_length(e) ((e)->iv_len)
|
int EVP_CIPHER_iv_length(const EVP_CIPHER *cipher);
|
||||||
#define EVP_CIPHER_flags(e) ((e)->flags)
|
unsigned long EVP_CIPHER_flags(const EVP_CIPHER *cipher);
|
||||||
#define EVP_CIPHER_mode(e) (((e)->flags) & EVP_CIPH_MODE)
|
#define EVP_CIPHER_mode(e) (EVP_CIPHER_flags(e) & EVP_CIPH_MODE)
|
||||||
|
|
||||||
#define EVP_CIPHER_CTX_cipher(e) ((e)->cipher)
|
const EVP_CIPHER * EVP_CIPHER_CTX_cipher(const EVP_CIPHER_CTX *ctx);
|
||||||
#define EVP_CIPHER_CTX_nid(e) ((e)->cipher->nid)
|
int EVP_CIPHER_CTX_nid(const EVP_CIPHER_CTX *ctx);
|
||||||
#define EVP_CIPHER_CTX_block_size(e) ((e)->cipher->block_size)
|
int EVP_CIPHER_CTX_block_size(const EVP_CIPHER_CTX *ctx);
|
||||||
#define EVP_CIPHER_CTX_key_length(e) ((e)->key_len)
|
int EVP_CIPHER_CTX_key_length(const EVP_CIPHER_CTX *ctx);
|
||||||
#define EVP_CIPHER_CTX_iv_length(e) ((e)->cipher->iv_len)
|
int EVP_CIPHER_CTX_iv_length(const EVP_CIPHER_CTX *ctx);
|
||||||
#define EVP_CIPHER_CTX_get_app_data(e) ((e)->app_data)
|
void * EVP_CIPHER_CTX_get_app_data(const EVP_CIPHER_CTX *ctx);
|
||||||
#define EVP_CIPHER_CTX_set_app_data(e,d) ((e)->app_data=(char *)(d))
|
void EVP_CIPHER_CTX_set_app_data(EVP_CIPHER_CTX *ctx, void *data);
|
||||||
#define EVP_CIPHER_CTX_type(c) EVP_CIPHER_type(EVP_CIPHER_CTX_cipher(c))
|
#define EVP_CIPHER_CTX_type(c) EVP_CIPHER_type(EVP_CIPHER_CTX_cipher(c))
|
||||||
#define EVP_CIPHER_CTX_flags(e) ((e)->cipher->flags)
|
unsigned long EVP_CIPHER_CTX_flags(const EVP_CIPHER_CTX *ctx);
|
||||||
#define EVP_CIPHER_CTX_mode(e) ((e)->cipher->flags & EVP_CIPH_MODE)
|
#define EVP_CIPHER_CTX_mode(e) (EVP_CIPHER_CTX_flags(e) & EVP_CIPH_MODE)
|
||||||
|
|
||||||
#define EVP_ENCODE_LENGTH(l) (((l+2)/3*4)+(l/48+1)*2+80)
|
#define EVP_ENCODE_LENGTH(l) (((l+2)/3*4)+(l/48+1)*2+80)
|
||||||
#define EVP_DECODE_LENGTH(l) ((l+3)/4*3+80)
|
#define EVP_DECODE_LENGTH(l) ((l+3)/4*3+80)
|
||||||
@ -479,10 +479,14 @@ void BIO_set_md(BIO *,const EVP_MD *md);
|
|||||||
#endif
|
#endif
|
||||||
#define BIO_get_md(b,mdp) BIO_ctrl(b,BIO_C_GET_MD,0,(char *)mdp)
|
#define BIO_get_md(b,mdp) BIO_ctrl(b,BIO_C_GET_MD,0,(char *)mdp)
|
||||||
#define BIO_get_md_ctx(b,mdcp) BIO_ctrl(b,BIO_C_GET_MD_CTX,0,(char *)mdcp)
|
#define BIO_get_md_ctx(b,mdcp) BIO_ctrl(b,BIO_C_GET_MD_CTX,0,(char *)mdcp)
|
||||||
|
#define BIO_set_md_ctx(b,mdcp) BIO_ctrl(b,BIO_C_SET_MD_CTX,0,(char *)mdcp)
|
||||||
#define BIO_get_cipher_status(b) BIO_ctrl(b,BIO_C_GET_CIPHER_STATUS,0,NULL)
|
#define BIO_get_cipher_status(b) BIO_ctrl(b,BIO_C_GET_CIPHER_STATUS,0,NULL)
|
||||||
#define BIO_get_cipher_ctx(b,c_pp) BIO_ctrl(b,BIO_C_GET_CIPHER_CTX,0,(char *)c_pp)
|
#define BIO_get_cipher_ctx(b,c_pp) BIO_ctrl(b,BIO_C_GET_CIPHER_CTX,0,(char *)c_pp)
|
||||||
|
|
||||||
#define EVP_Cipher(c,o,i,l) (c)->cipher->do_cipher((c),(o),(i),(l))
|
int EVP_Cipher(EVP_CIPHER_CTX *c,
|
||||||
|
unsigned char *out,
|
||||||
|
const unsigned char *in,
|
||||||
|
unsigned int inl);
|
||||||
|
|
||||||
#define EVP_add_cipher_alias(n,alias) \
|
#define EVP_add_cipher_alias(n,alias) \
|
||||||
OBJ_NAME_add((alias),OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS,(n))
|
OBJ_NAME_add((alias),OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS,(n))
|
||||||
@ -498,9 +502,9 @@ int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx);
|
|||||||
EVP_MD_CTX *EVP_MD_CTX_create(void);
|
EVP_MD_CTX *EVP_MD_CTX_create(void);
|
||||||
void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx);
|
void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx);
|
||||||
int EVP_MD_CTX_copy_ex(EVP_MD_CTX *out,const EVP_MD_CTX *in);
|
int EVP_MD_CTX_copy_ex(EVP_MD_CTX *out,const EVP_MD_CTX *in);
|
||||||
#define EVP_MD_CTX_set_flags(ctx,flgs) ((ctx)->flags|=(flgs))
|
void EVP_MD_CTX_set_flags(EVP_MD_CTX *ctx, int flags);
|
||||||
#define EVP_MD_CTX_clear_flags(ctx,flgs) ((ctx)->flags&=~(flgs))
|
void EVP_MD_CTX_clear_flags(EVP_MD_CTX *ctx, int flags);
|
||||||
#define EVP_MD_CTX_test_flags(ctx,flgs) ((ctx)->flags&(flgs))
|
int EVP_MD_CTX_test_flags(const EVP_MD_CTX *ctx,int flags);
|
||||||
int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl);
|
int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl);
|
||||||
int EVP_DigestUpdate(EVP_MD_CTX *ctx,const void *d,
|
int EVP_DigestUpdate(EVP_MD_CTX *ctx,const void *d,
|
||||||
size_t cnt);
|
size_t cnt);
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
#include "idea_lcl.h"
|
#include "idea_lcl.h"
|
||||||
#include <openssl/opensslv.h>
|
#include <openssl/opensslv.h>
|
||||||
|
|
||||||
const char *IDEA_version="IDEA" OPENSSL_VERSION_PTEXT;
|
const char IDEA_version[]="IDEA" OPENSSL_VERSION_PTEXT;
|
||||||
|
|
||||||
const char *idea_options(void)
|
const char *idea_options(void)
|
||||||
{
|
{
|
||||||
|
@ -67,7 +67,7 @@ if (ul != 0) \
|
|||||||
r-=((r)>>16); \
|
r-=((r)>>16); \
|
||||||
} \
|
} \
|
||||||
else \
|
else \
|
||||||
r=(-(int)a-b+1); /* assuming a or b is 0 and in range */ \
|
r=(-(int)a-b+1); /* assuming a or b is 0 and in range */
|
||||||
|
|
||||||
#ifdef undef
|
#ifdef undef
|
||||||
#define idea_mul(r,a,b,ul,sl) \
|
#define idea_mul(r,a,b,ul,sl) \
|
||||||
|
@ -68,7 +68,7 @@
|
|||||||
#include <openssl/engine.h>
|
#include <openssl/engine.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const char *RSA_version="RSA" OPENSSL_VERSION_PTEXT;
|
const char RSA_version[]="RSA" OPENSSL_VERSION_PTEXT;
|
||||||
|
|
||||||
static const RSA_METHOD *default_RSA_meth=NULL;
|
static const RSA_METHOD *default_RSA_meth=NULL;
|
||||||
|
|
||||||
|
@ -574,7 +574,6 @@ static int ssl23_get_server_hello(SSL *s)
|
|||||||
if (!ssl_get_new_session(s,0))
|
if (!ssl_get_new_session(s,0))
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
s->first_packet=1;
|
|
||||||
return(SSL_connect(s));
|
return(SSL_connect(s));
|
||||||
err:
|
err:
|
||||||
return(-1);
|
return(-1);
|
||||||
|
@ -565,7 +565,6 @@ int ssl23_get_client_hello(SSL *s)
|
|||||||
s->init_num=0;
|
s->init_num=0;
|
||||||
|
|
||||||
if (buf != buf_space) OPENSSL_free(buf);
|
if (buf != buf_space) OPENSSL_free(buf);
|
||||||
s->first_packet=1;
|
|
||||||
return(SSL_accept(s));
|
return(SSL_accept(s));
|
||||||
err:
|
err:
|
||||||
if (buf != buf_space) OPENSSL_free(buf);
|
if (buf != buf_space) OPENSSL_free(buf);
|
||||||
|
@ -82,15 +82,18 @@ int ssl2_enc_init(SSL *s, int client)
|
|||||||
((s->enc_read_ctx=(EVP_CIPHER_CTX *)
|
((s->enc_read_ctx=(EVP_CIPHER_CTX *)
|
||||||
OPENSSL_malloc(sizeof(EVP_CIPHER_CTX))) == NULL))
|
OPENSSL_malloc(sizeof(EVP_CIPHER_CTX))) == NULL))
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
|
/* make sure it's intialized in case the malloc for enc_write_ctx fails
|
||||||
|
* and we exit with an error */
|
||||||
|
rs= s->enc_read_ctx;
|
||||||
|
EVP_CIPHER_CTX_init(rs);
|
||||||
|
|
||||||
if ((s->enc_write_ctx == NULL) &&
|
if ((s->enc_write_ctx == NULL) &&
|
||||||
((s->enc_write_ctx=(EVP_CIPHER_CTX *)
|
((s->enc_write_ctx=(EVP_CIPHER_CTX *)
|
||||||
OPENSSL_malloc(sizeof(EVP_CIPHER_CTX))) == NULL))
|
OPENSSL_malloc(sizeof(EVP_CIPHER_CTX))) == NULL))
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
rs= s->enc_read_ctx;
|
|
||||||
ws= s->enc_write_ctx;
|
ws= s->enc_write_ctx;
|
||||||
|
|
||||||
EVP_CIPHER_CTX_init(rs);
|
|
||||||
EVP_CIPHER_CTX_init(ws);
|
EVP_CIPHER_CTX_init(ws);
|
||||||
|
|
||||||
num=c->key_len;
|
num=c->key_len;
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
#include <openssl/md5.h>
|
#include <openssl/md5.h>
|
||||||
|
|
||||||
const char *ssl2_version_str="SSLv2" OPENSSL_VERSION_PTEXT;
|
const char ssl2_version_str[]="SSLv2" OPENSSL_VERSION_PTEXT;
|
||||||
|
|
||||||
#define SSL2_NUM_CIPHERS (sizeof(ssl2_ciphers)/sizeof(SSL_CIPHER))
|
#define SSL2_NUM_CIPHERS (sizeof(ssl2_ciphers)/sizeof(SSL_CIPHER))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user