Topic: [SOLVED] C# Wrapper useDTLSv1_2_client: Unable to find entry point

Hey,

I am trying to write a client on the C# side but I run into this issue:
{"Unable to find an entry point named 'wolfDTLSv1_2_client_method' in DLL 'wolfssl.dll'.":""}
This happens when I am initializing the context.

 
wolfssl.SetLogging(sslLogger);
wolfssl.Init();

mContext = wolfssl.CTX_dtls_new(wolfssl.useDTLSv1_2_client());
// ERROR HERE
if (mContext == IntPtr.Zero)
{
  Debug.Print("Error creating wolf ssl context structure");
  wolfssl.CTX_free(mContext);
  return false;
}

Can someone point me in the right direction? I have run out of ideas.

Thanks!

Share

Re: [SOLVED] C# Wrapper useDTLSv1_2_client: Unable to find entry point

Hi,

When you are compiling wolfSSL and the C# wrapper, have you defined WOLFSSL_DTLS? This will enable DTLS functionality. You should be able to add this either to your list of preprocessor defines in the project properties, or in the <user_settings.h> file found in the <wolfssl_root>/IDE/WIN directory.

Best Regards,
Chris

Re: [SOLVED] C# Wrapper useDTLSv1_2_client: Unable to find entry point

Thanks for the response Chris,

I was unable to make it work with setting the preprocessor within the project. I had to go into <user_settings.h> and set the flag.
Everything worked after that. Thanks!

-d

Share

Re: [SOLVED] C# Wrapper useDTLSv1_2_client: Unable to find entry point

Great, glad to hear, thanks for letting me know!