On Wed, 22 Apr 1998, Tomas Hellberg wrote:
> int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x);
>
> to tell SSLeay to use this certificate, but I'm not sure how to get the
> certificate into an X509*. If anyone could provide example code of how
> to establish this, I'd be most grateful.
Given unsigned char XXX_certificate[493]={
....
}
{
char *p;
X509 *x509;
x509=d2i_X509(NULL,&p,(long)sizeof(XXX_certificate));
}
Should do the trick.
eric
+-------------------------------------------------------------------------+
| Administrative requests should be sent to [EMAIL PROTECTED] |
| List service provided by Open Software Associates, http://www.osa.com/ |
+-------------------------------------------------------------------------+