-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUILD 56; released, libmbedtls default engine
- Loading branch information
adamy
committed
Apr 30, 2020
1 parent
095cc72
commit 51d8a01
Showing
21 changed files
with
348 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
53 | ||
56 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,6 @@ | |
|
||
------- | ||
|
||
$Id: $ | ||
$Id: INSTALL.txt,v 1.1 2020/04/30 21:30:14 cvsuser Exp $ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
|
||
Source: mbed TLS 2.13.0 (Apache) | ||
|
||
include\libmbedtls\platform.h | ||
|
||
- extern int (*mbedtls_fprintf)( FILE *stream, const char *format, ... ); | ||
|
||
#if defined(_WIN32) && !defined(LIBMBEDCRYPTO_SOURCE) | ||
+ #include "crypto_globals.h" | ||
+ #define mbedtls_fprintf get_mbedtls_fprintf() | ||
+ #else | ||
+ extern int (*mbedtls_fprintf)( FILE *stream, const char *format, ... ); | ||
+ #endif | ||
|
||
------- | ||
|
||
- extern int (*mbedtls_printf)( const char * format, ... ); | ||
|
||
+ #if defined(_WIN32) && !defined(LIBMBEDCRYPTO_SOURCE) | ||
+ #include "crypto_globals.h" | ||
+ #define mbedtls_printf get_mbedtls_printf() | ||
+ #else | ||
+ extern int (*mbedtls_printf)( const char * format, ... ); | ||
+ #endif | ||
|
||
------- | ||
|
||
- extern int (*mbedtls_snprintf)( char * s, size_t n, const char * format, ... ); | ||
|
||
+ #if defined(_WIN32) && !defined(LIBMBEDCRYPTO_SOURCE) | ||
+ #include "crypto_globals.h" | ||
+ #define mbedtls_snprintf get_mbedtls_snprintf() | ||
+ #else | ||
+ extern int (*mbedtls_snprintf)( char * s, size_t n, const char * format, ... ); | ||
+ #endif | ||
|
||
include\libmbedtls\platform_util.h | ||
|
||
//stdlib linkage | ||
- static void * (* const volatile memset_func)( void *, int, size_t ) = memset; | ||
|
||
+ static void * stdlib_memset( void *buf, int value, size_t len) | ||
+ { | ||
+ return memset( buf, value, len); | ||
+ } | ||
+ static void * (* const volatile memset_func)( void *, int, size_t ) = stdlib_memset; | ||
|
||
include\libmbedtls\ssl_tls.h | ||
|
||
#if defined(MBEDTLS_X509_CRT_PARSE_C) | ||
#include "mbedtls/oid.h" | ||
#endif | ||
|
||
+ #if defined(_WIN32) | ||
+ #include "x509_globals.h" | ||
+ #endif | ||
|
||
------- | ||
|
||
+ #if defined(_WIN32) | ||
+ conf->cert_profile = get_mbedtls_x509_crt_profile_suiteb(); | ||
+ #else | ||
conf->cert_profile = &mbedtls_x509_crt_profile_suiteb; | ||
+ #endf | ||
|
||
------- | ||
|
||
+ #if defined(_WIN32) | ||
+ conf->cert_profile = get_mbedtls_x509_crt_profile_default(); | ||
+ #else | ||
conf->cert_profile = &mbedtls_x509_crt_profile_default; | ||
+ #endif | ||
|
||
library\x590.c | ||
|
||
- lt = gmtime_s( &tm_buf, &tt ) == 0 ? &tm_buf : NULL; | ||
+ #if defined(__WATCOMC__) | ||
+ lt = gmtime_s( (const tm *)&tt, &tm_buf ); | ||
+ #else | ||
+ lt = (gmtime_s( &tm_buf, (const tm *)&tt ) == 0) ? &tm_buf : NULL; | ||
+ #endif | ||
|
||
win32\libmbedcrypto.def | ||
|
||
; library\asn1write.c | ||
+ mbedtls_asn1_write_tagged_string | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//$Id: libssh2_helper.c,v 1.1 2020/04/30 20:52:42 cvsuser Exp $ | ||
// | ||
// libssh2 support | ||
// | ||
|
||
#define LIBSSH2_LIBRARY | ||
#include <libssh2_helper.h> | ||
|
||
|
||
LIBSSH2_API int | ||
libssh2_helper_trace(void) | ||
{ | ||
#if defined(LIBSSH2DEBUG) | ||
return 1; | ||
#else | ||
return 0; | ||
#endif | ||
} | ||
|
||
|
||
LIBSSH2_API const char * | ||
libssh2_helper_engine(void) | ||
{ | ||
#if defined(LIBSSH2_OPENSSL) | ||
return "openssl"; | ||
|
||
#elif defined(LIBSSH2_MBEDTLS) | ||
return "mbedtls"; | ||
|
||
#elif defined(LIBSSH2_WINCNG) | ||
return "wincng"; | ||
|
||
#else | ||
#error Unknown engine configuration | ||
#endif | ||
} | ||
|
||
//end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
//$Id: libssh2_helper.h,v 1.1 2020/04/30 20:52:42 cvsuser Exp $ | ||
// | ||
// libssh2 support | ||
// | ||
|
||
#include <libssh2.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
LIBSSH2_API int libssh2_helper_trace(void); | ||
LIBSSH2_API const char *libssh2_helper_engine(void); | ||
|
||
#ifdef __cplusplus | ||
} /* extern "C" */ | ||
#endif | ||
|
||
//end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.