2

既存の C++ ソケット クライアント アプリケーションに SSL 機能を追加する必要があります。OpenSSL をダウンロードしてインストールしました。適切なライブラリとインクルードが Visual Studio フォルダーにあります。開発環境 (VC++ 6.0) の時代を許してください。ただし、これはレガシー プロジェクトであり、Windows XP でのみ実行されます。

この行を追加した後:

// OpenSSL implementation for secure socket
#include <openssl/ssl.h>

ヘッダー ファイルの 1 つで、次のコンパイル エラーが発生します。

c:\program files\microsoft visual studio\vc98\include\openssl\rsa.h(410) : error C2143: syntax error : missing ')' before 'constant'

c:\program files\microsoft visual studio\vc98\include\openssl\rsa.h(410) : error C2143: syntax error : missing ';' before 'constant'

c:\program files\microsoft visual studio\vc98\include\openssl\rsa.h(410) : fatal error C1004: unexpected end of file found

エラーの原因となっているファイルの行は rsa.h にあります

int RSA_verify_PKCS1_PSS(RSA *rsa, const unsigned char *mHash,          
            const EVP_MD *Hash, const unsigned char *EM, int sLen);

このエラーの原因は何ですか?

ありがとう

4

0 に答える 0