Skip to content

Commit

Permalink
MBedTLS 3.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
adamyg committed Mar 29, 2024
1 parent 6ea0119 commit 0052a4e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
13 changes: 11 additions & 2 deletions mcwin32/libmbedtls/win32/crypto_globals.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//$Id: crypto_globals.c,v 1.6 2024/03/29 09:45:57 cvsuser Exp $
//$Id: crypto_globals.c,v 1.7 2024/03/29 13:51:55 cvsuser Exp $
//
// libmbedcrypto support -
// retrieve the dynamic fprintf/snprintf/printf implementations (if required)
Expand Down Expand Up @@ -31,21 +31,30 @@ get_mbedtls_printf(void) {
}
#endif


#if defined(MBEDTLS_PLATFORM_SNPRINTF_ALT)
CRYPTO_MBEDAPI mbedtls_snprintf_t
get_mbedtls_snprintf(void) {
#undef mbedtls_snprintf
return mbedtls_snprintf;
}
#else
int mbedtls_platform_set_snprintf(int (*snprintf_func)(char *s, size_t n, const char *format, ...)) {
return 0; /*not-enabled*/
}
#endif


#if defined(MBEDTLS_PLATFORM_SNPRINTF_ALT)
#if defined(MBEDTLS_PLATFORM_VSNPRINTF_ALT)
CRYPTO_MBEDAPI mbedtls_vsnprintf_t
get_mbedtls_vsnprintf(void) {
#undef mbedtls_vsnprintf
return mbedtls_vsnprintf;
}
#else
int mbedtls_platform_set_vsnprintf(int (*vsnprintf_func)(char *s, size_t n, const char *format, va_list arg)) {
return 0; /*not-enabled*/
}
#endif


Expand Down
6 changes: 3 additions & 3 deletions mcwin32/libmbedtls/win32/libmbedcrypto.def.3.3.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;$Id: libmbedcrypto.def.3.3.0,v 1.2 2024/03/29 13:08:57 cvsuser Exp $
;$Id: libmbedcrypto.def.3.3.0,v 1.3 2024/03/29 13:51:55 cvsuser Exp $
;
; libmbedcrypto library definition (3.3.0)
;
Expand Down Expand Up @@ -610,9 +610,9 @@ EXPORTS

; library\platform.c
mbedtls_platform_win32_snprintf
;mbedtls_platform_set_snprintf
mbedtls_platform_set_snprintf
mbedtls_platform_win32_vsnprintf
;mbedtls_platform_set_vsnprintf
mbedtls_platform_set_vsnprintf
mbedtls_platform_setup
mbedtls_platform_teardown

Expand Down
2 changes: 1 addition & 1 deletion mcwin32/libssh2/libssh2_helper.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//$Id: libssh2_helper.c,v 1.1 2020/05/01 14:33:15 cvsuser Exp $
//$Id: libssh2_helper.c,v 1.2 2024/03/29 13:22:24 cvsuser Exp $
//
// libssh2 support
//
Expand Down

0 comments on commit 0052a4e

Please sign in to comment.