ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
As you have not asked a question it is difficult to understand the purpose of your post. I might assume that you think your code is not working correctly, but that might also send us both, and anyone else who reads this thread down the wrong path, so let's not do that!
Please review the Site FAQ for guidance in posting your questions and general forum usage. Especially, read the link in that page, How To Ask Questions The Smart Way. The more effort you put into understanding your problem and framing your questions, the better others can help!
Posting whole code and asking others to first understand how it should work, then to figure out why it may not be working in your specific case is not often a good way to approach a problem.
If you think the message being returned is not correct please explain why and include any steps you have taken to figure out why that may be.
Last edited by astrogeek; 02-09-2021 at 02:33 PM.
Reason: Almost proved my own point! Never assume...
This checks if the server has provided a certificate and throws an error and prints the SSL error stack. When I run my program, the server refuses to provide a certificate, which means that cert == NULL and the program exits after printing the error queue, which is:
As you have not asked a question it is difficult to understand the purpose of your post. I might assume that you think your code is not working correctly, but that might also send us both, and anyone else who reads this thread down the wrong path, so let's not do that!
Please review the Site FAQ for guidance in posting your questions and general forum usage. Especially, read the link in that page, How To Ask Questions The Smart Way. The more effort you put into understanding your problem and framing your questions, the better others can help!
Posting whole code and asking others to first understand how it should work, then to figure out why it may not be working in your specific case is not often a good way to approach a problem.
If you think the message being returned is not correct please explain why and include any steps you have taken to figure out why that may be.
It seems that I've solved my own problem. Openssl automatically verifies and then frees the certificates, so I only need the verification code when I'm trying to create my own verification function.
Please post your thread only once. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. When improving on a question please do so in the original thread to make it easier for others to follow the discussion.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.