Thanks, The problem is solved when compiled and linked with "applink.c"

On Thu, Feb 11, 2016 at 5:05 PM, Lloyd <lloydkl.t...@gmail.com> wrote:

> Hi,
>
> I have downloaded prebuilt version of openssl for windows. I am running on
> Windows 7 64bit,  Using Visual Studio 2010, generating 32bit binary.
>
> When I run a simple application which calling "PEM_read_PrivateKey" it
> crashes with error "OPENSSL_Uplink(505D6000,08): no OPENSSL_Applink"
>
> What could be the reason for this? Any hint is greatly appreciated.
>
> Thanks,
>   Lloyd
>
> The following is my code -
>
> int main() {
>    EVP_PKEY *privkey;
>    FILE *fp;
>    RSA *rsakey;
>
>    OpenSSL_add_all_algorithms();
>
>    privkey = EVP_PKEY_new();
>    fp = fopen ("G:\\temp\\mykey.pem", "r"); //File exists and it opens
>    PEM_read_PrivateKey( fp, &privkey, NULL, NULL); //CRASH
>
>    fclose(fp);
>
>     ...
>
> }
>
>
>
-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

Reply via email to