Hi, I am trying to read an RSA public key from a file in x509 format, but given that the crypto library is somewhat undocumented I haven't been able to figure out how. (If someone could point me in the direction of some documentation that would be good.) This is what i currently have: in = fopen(name, "r"); fscanf(in, bufit); bi = BIO_new_mem_buf(bufit, (sizeof(BIGNUM)*2)); x5 = (X509 *)PEM_read_bio_X509(bi, NULL, NULL, NULL); BIO_free (bi); evpKey = EVP_PKEY_new(); evpKey = X509_get_pubkey(x5); pub = EVP_PKEY_get1_RSA(evpKey); it core dumps at the last line, I have no idea why. If anyone could help, it would be greatly apreciated. Harold ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
