additional changes required to openssl-3.5.0 for compilation. (#19)
Reviewed-on: http://13.234.246.121:3000/Neominds/ossl35vx69/pulls/19 Co-authored-by: siddhant <siddhant.singh@neominds.in> Co-committed-by: siddhant <siddhant.singh@neominds.in>
This commit is contained in:
@@ -1192,7 +1192,7 @@ static int pack_local(BIO *b, MSGHDR_TYPE *mh, const BIO_ADDR *local) {
|
|||||||
cmsg->cmsg_type = IP_PKTINFO;
|
cmsg->cmsg_type = IP_PKTINFO;
|
||||||
|
|
||||||
info = (struct in_pktinfo *)BIO_CMSG_DATA(cmsg);
|
info = (struct in_pktinfo *)BIO_CMSG_DATA(cmsg);
|
||||||
# if !defined(OPENSSL_SYS_WINDOWS) && !defined(OPENSSL_SYS_CYGWIN) && !defined(__FreeBSD__) && !defined(__QNX__)
|
# if !defined(OPENSSL_SYS_WINDOWS) && !defined(OPENSSL_SYS_CYGWIN) && !defined(__FreeBSD__) && !defined(__QNX__) && !defined(OPENSSL_SYS_VXWORKS)
|
||||||
info->ipi_spec_dst = local->s_in.sin_addr;
|
info->ipi_spec_dst = local->s_in.sin_addr;
|
||||||
# endif
|
# endif
|
||||||
info->ipi_addr.s_addr = 0;
|
info->ipi_addr.s_addr = 0;
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ const char *ossl_get_enginesdir(void)
|
|||||||
return NULL;
|
return NULL;
|
||||||
return (const char *)enginesdirptr;
|
return (const char *)enginesdirptr;
|
||||||
#else
|
#else
|
||||||
return ENGINESDIR;
|
return "/engines_dummy";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,8 @@
|
|||||||
#include "crypto/evp.h"
|
#include "crypto/evp.h"
|
||||||
#include "legacy_meth.h"
|
#include "legacy_meth.h"
|
||||||
|
|
||||||
|
#define MDC2_BLOCK 8
|
||||||
|
|
||||||
IMPLEMENT_LEGACY_EVP_MD_METH(mdc2, MDC2)
|
IMPLEMENT_LEGACY_EVP_MD_METH(mdc2, MDC2)
|
||||||
|
|
||||||
static const EVP_MD mdc2_md = {
|
static const EVP_MD mdc2_md = {
|
||||||
|
|||||||
@@ -16,6 +16,25 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "internal/cryptlib.h"
|
#include "internal/cryptlib.h"
|
||||||
#include <openssl/mdc2.h>
|
#include <openssl/mdc2.h>
|
||||||
|
#include <openssl/des.h>
|
||||||
|
|
||||||
|
# define MDC2_DIGEST_LENGTH 16
|
||||||
|
|
||||||
|
# define MDC2_BLOCK 8
|
||||||
|
|
||||||
|
typedef struct mdc2_ctx_st {
|
||||||
|
unsigned int num;
|
||||||
|
unsigned char data[MDC2_BLOCK];
|
||||||
|
DES_cblock h, hh;
|
||||||
|
unsigned int pad_type; /* either 1 or 2, default 1 */
|
||||||
|
} MDC2_CTX;
|
||||||
|
|
||||||
|
int MDC2_Init(MDC2_CTX *c);
|
||||||
|
int MDC2_Update(MDC2_CTX *c, const unsigned char *data,
|
||||||
|
size_t len);
|
||||||
|
int MDC2_Final(unsigned char *md, MDC2_CTX *c);
|
||||||
|
unsigned char *MDC2(const unsigned char *d, size_t n,
|
||||||
|
unsigned char *md);
|
||||||
|
|
||||||
unsigned char *MDC2(const unsigned char *d, size_t n, unsigned char *md)
|
unsigned char *MDC2(const unsigned char *d, size_t n, unsigned char *md)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user