[authsaml2] Bits of cleaning.

This commit is contained in:
Mikaël Ates 2011-01-31 21:03:55 +01:00
parent 7b240c04fb
commit 5d87f923d4
3 changed files with 5 additions and 3 deletions

View File

@ -115,7 +115,7 @@ sub parse_file {
push @curcalls, $1; push @curcalls, $1;
} }
pos = 0; pos = 0;
while (/(LASSO_[A-Z_]*_ERROR_[A-Z_]*|LASSO_ERROR_[A-Z_]*)/g) { while (/(CRYPTIC_[A-Z_]*_ERROR_[A-Z_]*|CRYPTIC_ERROR_[A-Z_]*)/g) {
push @curerrors, $1; push @curerrors, $1;
} }
last MATCHING; last MATCHING;

View File

@ -26,7 +26,7 @@
#include "commitments_utils.h" #include "commitments_utils.h"
BIGNUM* BIGNUM*
cryptic_get_dlrep(int nb_quantities, BIGNUM **quantities,BIGNUM **bases,BIGNUM *modulus) cryptic_get_dlrep(int nb_quantities, BIGNUM **quantities, BIGNUM **bases, BIGNUM *modulus)
{ {
int rc = CRYPTIC_ERROR_UNDEFINED; int rc = CRYPTIC_ERROR_UNDEFINED;

View File

@ -31,7 +31,9 @@ int
cryptic_print_bn(char *prefix, BIGNUM *bn) cryptic_print_bn(char *prefix, BIGNUM *bn)
{ {
char *hex = NULL; char *hex = NULL;
hex = BN_bn2hex(bn); if(bn){
hex = BN_bn2hex(bn);
}
printf("%s%s\n", prefix, hex); printf("%s%s\n", prefix, hex);
OPENSSL_free(hex); OPENSSL_free(hex);
return CRYPTIC_NO_ERROR; return CRYPTIC_NO_ERROR;