bug report

2000-09-04 Thread Peter Sylvester
In crypto/bio/b_print.c there is MS_STATIC char hugebuf[1024*2]; /* 10k in one chunk is the limit */ 2024*2 is not exactly close to 10k. Some months ago I reported some bug in the BIO_write vs BIO_puts processing. Most implementions of BIO_puts just call the internal _write

How to check key_usage X509v3 extension ?

2000-09-04 Thread Peter Onion
I need to check if a certificate is marked for a particular key usage. I can get the extension and dump (as text) its contents. I've looked at how the string name for each bit in the extension is found in the function i2v_ASN1_BIT_STRINGS() but I can't see any definitions for functions that

Re: How to check key_usage X509v3 extension ?

2000-09-04 Thread Dr S N Henson
Peter Onion wrote: I need to check if a certificate is marked for a particular key usage. I can get the extension and dump (as text) its contents. I've looked at how the string name for each bit in the extension is found in the function i2v_ASN1_BIT_STRINGS() but I can't see any

Re: How to check key_usage X509v3 extension ?

2000-09-04 Thread Peter Onion
On 04-Sep-00 Dr S N Henson wrote: Peter Onion wrote: I need to check if a certificate is marked for a particular key usage. Steve, I had sort of worked out your first method for myself, but got stuck at the lack of constants defined for the bits. I note that the function that sets the

Error in x509type.c?

2000-09-04 Thread Ramsay, Ron
All, In line 109 of x509/x509type.c in the 4 Sep snapshot (and previous releases) we have if (EVP_PKEY_size(pk) = 512) My analysis is that this is looking for keys smaller than 4096 bits. I think this number should be 64 although, for my purposes, it is actually good that most keys are