Dear All;
When I compiled openssl-0.9.8g on VDSP and run \demos\ssl\cli.cpp .And I
tried to connect https://www.gmail.com https://www.gmail.com/ using
sslv2.0 .At that time I saw client sent client hello and server sent
server hello successfully. But After that Client was not sending MASTER_KEY
message. I checked and I found in file ssl\s2_clnt.c inside function
int ssl2_set_certificate(SSL *s, int type, int len, const unsigned char
*data) having function
x509=d2i_X509 (NULL, data,(long)len);
return x509=0; that's why it is going to label err. And returning ret =-1;
Please tell me how I can remove this error. So I can proceed further next
step in sslv2.0 response .
One thing I want to say for compilation purpose I added below function in
this file x_x509.c.
////
ASN1_SEQUENCE(X509_EXTENSION) = {
ASN1_OPT(X509_EXTENSION, object, ASN1_BOOLEAN),
ASN1_OPT(X509_EXTENSION, value, ASN1_OCTET_STRING)
} ASN1_SEQUENCE_END(X509_EXTENSION)
ASN1_SEQUENCE(PKCS8_PRIV_KEY_INFO) = {
ASN1_OPT(PKCS8_PRIV_KEY_INFO, version, ASN1_INTEGER),
} ASN1_SEQUENCE_END(PKCS8_PRIV_KEY_INFO)
IMPLEMENT_ASN1_FUNCTIONS(X509)
IMPLEMENT_ASN1_DUP_FUNCTION(X509)
IMPLEMENT_ASN1_DUP_FUNCTION(X509_EXTENSION)
IMPLEMENT_ASN1_FUNCTIONS(X509_EXTENSION)
IMPLEMENT_ASN1_FUNCTIONS(PKCS8_PRIV_KEY_INFO)
IMPLEMENT_ASN1_DUP_FUNCTION(PKCS8_PRIV_KEY_INFO)
////
If above function is wrong and problem due to this, what I wrote in file
x_x509.c then please tell me how Linux or Window os map this function and
how I can map it.
Thnx.
Regards;
Ajeet Kumar Singh