- Added prelimenary CRL parsing and info support

This commit is contained in:
Paul Bakker 2009-05-02 15:13:40 +00:00
parent 68041ec500
commit d98030e7d6
5 changed files with 967 additions and 219 deletions

View file

@ -171,7 +171,7 @@ void debug_print_mpi( ssl_context *ssl, int level,
void debug_print_crt( ssl_context *ssl, int level,
char *file, int line, char *text, x509_cert *crt )
{
char str[1024], prefix[64], *p;
char str[1024], prefix[64];
int i = 0, maxlen = sizeof( prefix ) - 1;
if( ssl->f_dbg == NULL || crt == NULL )
@ -183,10 +183,11 @@ void debug_print_crt( ssl_context *ssl, int level,
while( crt != NULL && crt->next != NULL )
{
p = x509parse_cert_info( prefix, crt );
char buf[1024];
x509parse_cert_info( buf, sizeof( buf ) - 1, prefix, crt );
snprintf( str, maxlen, "%s(%04d): %s #%d:\n%s",
file, line, text, ++i, p );
file, line, text, ++i, buf );
str[maxlen] = '\0';
ssl->f_dbg( ssl->p_dbg, level, str );

File diff suppressed because it is too large Load diff