H
H
HighMan2017-12-04 12:10:56
GCC
HighMan, 2017-12-04 12:10:56

What is missing for SSLv3_method?

Hello Lord!
I'm tinkering with SSL and ran into an error with which I don't know what to do. Reduced the code a lot to solve this problem.

#include <openssl/ssl.h>

int main(void)
{
    SSLv3_method();
    return 0;
}

Compile: gcc -lssl -lcrypto test.c
test.c:(.text+0x5): undefined reference to `SSLv3_method'
What is it missing or am I doing wrong?
SSLv23_method works great!
look in man and see:
#ifndef OPENSSL_NO_SSL3_METHOD
        const SSL_METHOD *SSLv3_method(void);
        const SSL_METHOD *SSLv3_server_method(void);
        const SSL_METHOD *SSLv3_client_method(void);
        #endif

But then I can not figure out how to overcome this

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Grishin, 2017-12-04
@HighMan

Probably, modern versions of OpenSSL are compiled without using SSLv3 at all, as a result, there is no such method in the interface. Look up which method to use instead - maybe TLSv1_method() (for method naming logic).

H
HighMan, 2017-12-22
@HighMan

I apologize for not showing up for a long time.
It seems that SSL was really assembled without SSLv3. TLSv1_2_method works fine instead of SSLv3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question