File: system_mbedtls_3.patch

package info (click to toggle)
ncbi-vdb 3.2.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 42,776 kB
  • sloc: ansic: 304,815; cpp: 75,250; python: 5,402; perl: 3,438; yacc: 2,225; sh: 689; lex: 574; makefile: 428; xml: 4
file content (23 lines) | stat: -rw-r--r-- 912 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Index: b/build/common.cmake
===================================================================
--- a/build/common.cmake
+++ b/build/common.cmake
@@ -225,8 +225,7 @@ function( AddExecutableTest test_name so
 endfunction()
 
 include(CheckIncludeFileCXX)
-#check_include_file_cxx(mbedtls/md.h HAVE_MBEDTLS_H)
-set(HAVE_MBEDTLS_H 0) # TODO: disabling system mbedtls since it may be outdated
+check_include_file_cxx(mbedtls/md.h HAVE_MBEDTLS_H)
 set( MBEDTLS_LIBS mbedx509 mbedtls mbedcrypto ) # need to link against mbedtls in any case: system or local mbedtls
 set(CMAKE_REQUIRED_LIBRARIES ${MBEDTLS_LIBS})
 if ( HAVE_MBEDTLS_H )
@@ -239,7 +238,7 @@ int main(int argc, char *argv[]) {
 	mbedtls_md_context_t ctx;
 	mbedtls_md_type_t md_type = MBEDTLS_MD_SHA256;
 	mbedtls_md_init(&ctx);
-	printf(\"test p: %p\", ctx.md_ctx);
+	printf(\"test p: %p\", mbedtls_md_info_from_ctx(&ctx));
 }
 " HAVE_MBEDTLS_F)
 else()