I\'m writing a small program with the OpenSSL library that is suppose to establish a connection with server and make a check that the server certificate match with a local c