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