Re: X509_STORE & STACK OF(X509)
On 2008.04.04 at 15:53:33 +0200, roberto calosino wrote:
> I'd like to know the difference between X509_STORE (X509_STORE_new) and STACK_OF(X509) (sk_X509_new).
> What kind of additional information contains a X509_STORE ?[/color]
Stack is generic data structure. There are stacks of everything in
Openssl. Stack is no more than variable-size array.
X509_STORE is quite another matter. It is generic access interface
for CA cerrrtificate database. It can store CRLS as well as
certificates, lookup certificates by subject and by fingerprint, build
validation chains etc.
OpenSSL itself provides just two X509_STORE_METHODs - one which loads
pack of cerriticates from file and caches them in the memory, and one
which uses dierectory with hashed names as backend storage.
But nothing (short of lack of documentation) prevents you from writing
your own X509_STORE_METHOD and use relational DBMS or something else for
certificate storage. All OpenSSL fucntions which verify certificates
would transparently use your storage using X509_STORE interface.
> Thank you very much in advance.
> Mit der Gruppen-SMS von WEB.DE FreeMail k?nnen Sie eine SMS an alle
> Freunde gleichzeitig schicken: [url]http://freemail.web.de/features/?mc=021179[/url]
> OpenSSL Project [url]http://www.openssl.org[/url]
> User Support Mailing List [email]email@example.com[/email]
> Automated List Manager [email]firstname.lastname@example.org[/email]
OpenSSL Project [url]http://www.openssl.org[/url]
User Support Mailing List [email]email@example.com[/email]
Automated List Manager [email]firstname.lastname@example.org[/email]