Mercurial > trustbridge
view common/errorcodes.h @ 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 | b832231640ab |
children | 17e1c8f37d72 |
line wrap: on
line source
#ifndef ERRORCODES_H #define ERRORCODES_H /* No error */ #define ERR_NO_ERROR 0 /* Failed to read / verify the certificate list */ #define ERR_INVALID_INPUT_NO_LIST 2 /* Too much input for the installer process */ #define ERR_TOO_MUCH_INPUT 3 /* Invalid signature */ #define ERR_INVALID_SIGNATURE 4 /* No instructions */ #define ERR_NO_INSTRUCTIONS 5 /* Instructions not valid (certs not part of certificate list) */ #define ERR_INVALID_INSTRUCTIONS 6 /* Failed to access specified store */ #define ERR_STORE_ACCESS_DENIED 7 /* Failed to add certificate to store */ #define ERR_STORE_ADD_FAILURE 8 /* Generic invalid input */ #define ERR_INVALID_INPUT 9 /* Generic invalid certificate */ #define ERR_INVALID_CERT 10 /* Invalid parameters in call */ #define ERR_INVALID_PARAMS 11 /*********************************************************************** * mozilla specific errors and warnings * errors range from 0x0081 to 0x08F * warnings from 0x0091 to 0x0098 * Warnings might be ORed together ... */ /* Error: could not determine current users HOME */ #define ERR_MOZ_HOMELESS 0x0081 #define ERR_MOZ_INVALID_INPUT 0x0082 /* Error: Called with wrong number of arguments */ #define ERR_MOZ_WRONG_ARGC 0x0083 #define ERR_MOZ_FAILED_TO_OPEN_INPUT 0x0084 /* Warning: Failed to read profile.ini */ #define WARN_MOZ_FAILED_TO_OPEN_INI 0x0091 /* Warning: Some profile paths from profile.ini don't exist */ #define WARN_MOZ_PROFILE_DOES_NOT_EXIST 0x0092 /* Warning: could not install some certs */ #define WARN_MOZ_COULD_NOT_ADD_CERT 0x0094 /* Warning: could not remove some certs */ #define WARN_MOZ_COULD_NOT_REMOVE_CERT 0x0098 #endif