VC calls OpenSSL

Source: Internet
Author: User

In fact, OpenSSL does not need to be installed through dos. The current installation package is available online, and the latest installation package is installed,

The following three folders are used: Bin, include, and Lib.

Download gsoap and decompress it!

If SSL is used, you need to re-compile wsdl2h and compile it under visualstudio2005. Before compiling, You need to select the OpenSSL-related include and Lib files,

Import libeay32.lib and ssleay32.lib, if c: \ OpenSSL-Win32 \ Lib \ Vc does not have these two library files, then add

Add Win32, _ debug, _ WINDOWS, _ afxdll to with_openssl in the project configuration

Reference http://www.ibm.com/developerworks/cn/webservices/ws-soa-gsoap/index.html#resources

Http://blog.csdn.net/gogor/article/details/5896135

If you want to add a library and header file that supports SSL to the project, the same as above

Add all files to the project at the same time,

In pre-compilation, C/C ++ --> category: Select precompiled headers and not using precompiled headers,

Add in CPP

# Include "soapcustombinding_uscoreicertificateproxy.h"
# Include "custombinding_uscoreicertificate.nsmap"

# Pragma comment (Lib, "ssleay32.lib ")
# Pragma comment (Lib, "libeay32.lib ")

Now that the reference is complete, the next step is to call the interface.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.