Mercurial > trustbridge
view cmake/FindNSS.cmake @ 359:f6ce186cebc2
If DO_RELEASE_BUILD is set use pubkey-release and test with it
This currently fails because polarssl rejects keys with
a public exponent larger then 64 bit.
With the following patch all tests pass. But this
currently awaits upstream comment.
https://polarssl.org/discussions/bug-report-issues/rsa-keys-with-large-public-exponents-are-rejected
--- rsa.c.orig 2014-04-10 17:22:32.727290031 +0200
+++ rsa.c 2014-04-10 17:22:38.847410225 +0200
@@ -154,7 +154,7 @@
return( POLARSSL_ERR_RSA_KEY_CHECK_FAILED );
if( mpi_msb( &ctx->E ) < 2 ||
- mpi_msb( &ctx->E ) > 64 )
+ mpi_msb( &ctx->E ) > POLARSSL_MPI_MAX_BITS )
return( POLARSSL_ERR_RSA_KEY_CHECK_FAILED );
return( 0 );
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 10 Apr 2014 17:50:44 +0200 |
parents | fe86c45755d8 |
children | a974b61a5cce |
line wrap: on
line source
# - Try to find Mozilla NSS include(FindPkgConfig) # FIXME: maybe a minimal version would be wise... pkg_check_modules (NSS nss) if (NOT NSS_FOUND) set(NSS_INCLUDES nss.h nspr.h) set(NSS_LIBS nss3 nssutil3 smime3 ssl3 plds4 plc4 nspr4) foreach(include ${NSS_INCLUDES}) find_path(NSS_${include}_INCLUDE ${include} HINTS ${NSS_INCLUDEDIR} ${NSS_INCLUDEDIR}/nspr) if(NSS_${include}_INCLUDE) set(NSS_INCLUDE_DIRS ${NSS_INCLUDE_DIRS};${NSS_${include}_INCLUDE}) else(NSS_${include}_INCLUDE) message(STATUS "Could not find NSS include: ${include}") return() endif(NSS_${include}_INCLUDE) endforeach(include) foreach(lib ${NSS_LIBS}) find_library(NSS_${lib}_LIBRARIE ${lib} HINTS ${NSS_LIBDIR}) if(NSS_${lib}_LIBRARIE) set(NSS_LIBRARIES ${NSS_LIBRARIES};${NSS_${lib}_LIBRARIE}) else(NSS_${lib}_LIBRARIE) message(STATUS "Could not find NSS library: ${lib}") return() endif(NSS_${lib}_LIBRARIE) endforeach(lib) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(NSS REQUIRED_VARS NSS_INCLUDE_DIRS NSS_LIBRARIES ) endif (NOT NSS_FOUND)