Building OpenSSL

2019-09-12 Thread Osman Zakir
I want to build OpenSSL for an x64 Windows 10 OS. I tried to configure it on the Developer Command Prompt for VS 2019 by running "perl Configure VC-WIN64A", but it gave me this error: " Can't locate Win32/Console.pm in @INC (you may need to install the Win32::Console module) (@INC contains:

Re: Building OpenSSL

2019-09-12 Thread Osman Zakir
E : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.22.27905\bin\HostX64\x64\nmake.exe"' : return code '0x2'​ Stop. " Any help would be appreciated. Thanks in advance. From: openssl-users o

Re: Building OpenSSL

2019-09-12 Thread Osman Zakir
Okay, I was able to build it and am running the tests now. How do I know whether to enable RC5 or MD4, though? Which one do I enable? Sorry if this is a stupid question. And what's "afalg" (in "test_afalf")?

Re: Linker errors when trying to build OpenSSL with MD2 and RC5 support

2019-09-13 Thread Osman Zakir
I had a successful build before I configured it again to try to get MD2 and RC5, so I didn't see a reason to clean the build. I did clean it now after the failure happened. I'll try to fix these errors for now, so please help me with that. But I also want to know after that whether or not

Linker errors when trying to build OpenSSL with MD2 and RC5 support

2019-09-13 Thread Osman Zakir
I had linker errors when trying to build OpenSSL with MD2 and RC5 support. I ran this command: " perl Configure VC-WIN64A --with-zlib-lib=C:/zlib/lib/zlibstatic --with-zlib-include=C:/zlib/include enable-md2 enable-rc5 --release " and had the messages I've put in this Gist in the output:

Re: Linker errors when trying to build OpenSSL with MD2 and RC5 support

2019-09-14 Thread Osman Zakir
Are there additional commands I have to pass to the Configure module if I want to build completely static libs? If so, what are they?

MD2 or RC5?

2019-09-13 Thread Osman Zakir
I'd still like to know if it's possible to enable to both. If it's not, though, then which one is best to enable? MD2 or RC5? Thanks in advantage for the reply and sorry for the new email thread.

Re: Linker errors when trying to build OpenSSL with MD2 and RC5 support

2019-09-13 Thread Osman Zakir
I'll just put both email addresses in for "To" then. I won't build with either one enabled if that's better, but I'd still like to know how to fix those linker errors. I do also want to ask what AFALG is and if I should enable it or not (and what happens if I do).

Parsing ClientHello Message for HTTP/2 Upgrade Request -- How do I do this?

2020-08-28 Thread Osman Zakir
Hi, everyone. As I said in the subject, I want to know how to parse the ClientHello message to find the HTTP/2 upgrade request if it's there. I'm using Boost.BEAST for HTTPS, but it only has support for HTTP/1.1 so I need to write code for supporting HTTP/2 myself if I want that. I also want

I May Have a HTTP/2 Upgrade Request in ClientHello in Server App, But I Don't Know How to Parse ClientHello

2022-07-20 Thread Osman Zakir
Hello, everyone. I have this C++ server app I'm hosting on my computer (source code on GitHub -- I'm using Google Maps as a GUI, and it's basically a currency converter app). I was recently having SSL issues on it, but after sorting them out

Did I do this correctly? (Trying to select protocols in ALPN through OpenSSL's API)

2022-07-26 Thread Osman Zakir
I have this code in my server app: ``` // Handles an HTTP server connection void do_session(tcp::socket , ssl::context , const std::string _root, std::string_view googlekey,   std::string_view currencykey) {   bool close{};   boost::system::error_code ec;   // Construct the

SSL_CTX_set_alpn_select_cb and Other OpenSSL API ALPN Functions + Their Callbacks

2022-07-29 Thread Osman Zakir
Hi again. I don't understand how to write the callback functions some of the OpenSSL ALPN functions expect, and the manual really isn't helping there either, so I'd like some help. I have a HTTP/2 upgrade request inside the ClientHello and it's causing my server app to give an error about an

Re: SSL_CTX_set_alpn_select_cb and Other OpenSSL API ALPN Functions + Their Callbacks

2022-07-30 Thread Osman Zakir
'int (__cdecl *)(SSL *,int,void *)' to 'SSL_client_hello_cb_fn' Someone please help, if possible. Thanks. Original Message *Subject:* Re: SSL_CTX_set_alpn_select_cb and Other OpenSSL API ALPN Functions + Their Callbacks *From:* Osman Zakir *To:* "an...@magsys.co.uk" *Date:* Sat,

Pulling Certs from the Root Cert Store

2022-08-05 Thread Osman Zakir
In my current code I'm using the Windows API to do this, but I want to know how I can do it using just the OpenSSL crypto library instead. What functions do I need to use and what header(s) do I need to #include? My current code pulling root certs from the store is

SSL_CTX_set_client_hello_cb - How to select protocol for ALPN?

2022-07-31 Thread Osman Zakir
How do I actually select the protocol for ALPN? I have this: SSL_client_hello_cb_fn set_alpn_cb(SSL* ssl, int* alert, const unsigned char* arg) {   constexpr int ext_type{ TLSEXT_TYPE_application_layer_protocol_negotiation };   int extensions[1]{ ext_type };   std::size_t