1

(8 replies, posted in cURL)

I included it to the user_settings but get a whole set of new errors when trying to build SSL and SSH. This is not working at all and the information on that blog doesn't say anything about using Visual studio.
I think I have to abandon WolfSSL and see if I can get some other library for cURL since the project is stucked here.

2

(8 replies, posted in cURL)

I have used the latest version, but haven't had time to check into this more but hope I can soon. So I need to add all these definitions to the preprocessor in Visual Studio?
Are there any document or something somethere describing on how to use it with cURL?

3

(1 replies, posted in wolfSSL)

I have followed the instructions (building-wolfssh-on-windows.pdf) on how to build SSL and SSH and it worked as described but when I change the target to win32 it didn't work anymore. I just get a lot of errors that it can't open wolfssl.lib

I'm trying to compile it to work with CURL but can't find anything regarding that. I'm using Visual Studio 2022.

4

(8 replies, posted in cURL)

No answer on how to use wolfssl with curl?
I found in SSL the macro "HAVE_CURL", but when I added that to the preprocessor directive I just got new errors

Alot of:
Error    C2143    syntax error: missing '{' before '*'
on lines like:
int wolfSSL_MD5_Init(WOLFSSL_MD5_CTX* md5)

5

(8 replies, posted in cURL)

Hi

I used the 'wolfssl64.sln' file that is included to build SSL. So should I add something to the preprocessor directive?

6

(8 replies, posted in cURL)

Hi!

I have been using Curllib for regular ftp transfer but need to make it work for sftp as well. I wanted to use wolfSSL for this and I followed the build instructions on how to build ssl and ssh for Visual studio and that worked without any issue what I can see.

Now I need to build curllib and I selected "Lib wolfSSL" in the curl visual studion project (I have tried both release and debug, 32 and 64 bit with same result). I setup the include directories so it found the wolf .h files but it wont't build without errors.

I get a lot of errors but I think a lot of them depends on these:
Error    C2027    use of undefined type 'sha256_ctx'
Error    C2061    syntax error: identifier 'EVP_MD_CTX'

The error comes from these lines in sha256.c

#if defined(USE_OPENSSL_SHA256)

struct sha256_ctx {
  EVP_MD_CTX *openssl_ctx;
}; is not defined

I found EVP_MD_CTX in the file 'compat_types.h' but that file is not referenced anywere in the project.

so its is strange that USE_OPENSSL_SHA256 is defined since that will create errors.

#ifdef USE_WOLFSSL
#include <wolfssl/options.h>
#ifndef NO_SHA256
#define USE_OPENSSL_SHA256
#endif
#endif

USE_OPENSSL_SHA256 is defined since NO_SHA256 is NOT, but defining it created just a whole lot of other errors so defining it wasn't the solution.

So I'm stuck at the moment since I can't find any information regarding how to solve this.