zmienilem
#include "md5.h"
#include "des.h"
wewnatrz
na
#include "/usr/include/cryptopp/md5.h"
#include "/usr/include/cryptopp/des.h"
ale wciaz mam:
In file included from unwand.cpp:8:
/usr/include/cryptopp/md5.h:25:2: warning: #warning "You may be using a weak
algorithm that has been retained for backwards compatibility. Please
'#define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1' before including this .h file and
prepend the class name with 'Weak::' to remove this warning."
unwand.cpp:171:2: warning: no newline at end of file
unwand.cpp: In function 'int main(int, char**)':
unwand.cpp:58: error: 'DES_KEY_SZ' was not declared in this scope
unwand.cpp:103: error: 'MD5_DIGEST_LENGTH' was not declared in this scope
unwand.cpp:114: error: 'hashSignature1' was not declared in this scope
unwand.cpp:114: error: 'MD5' was not declared in this scope
unwand.cpp:124: error: 'hashSignature2' was not declared in this scope
unwand.cpp:130: error: 'DES_key_schedule' was not declared in this scope
unwand.cpp:130: error: expected `;' before 'key_schedule1'
unwand.cpp:132: error: 'const_DES_cblock' was not declared in this scope
unwand.cpp:132: error: expected primary-expression before ')' token
unwand.cpp:133: error: 'key_schedule1' was not declared in this scope
unwand.cpp:133: error: 'DES_set_key_unchecked' was not declared in this
scope
unwand.cpp:135: error: expected primary-expression before ')' token
unwand.cpp:136: error: 'key_schedule2' was not declared in this scope
unwand.cpp:138: error: expected primary-expression before ')' token
unwand.cpp:139: error: 'key_schedule3' was not declared in this scope
unwand.cpp:141: error: 'DES_cblock' was not declared in this scope
unwand.cpp:141: error: expected `;' before 'iVector'
unwand.cpp:142: error: 'iVector' was not declared in this scope
unwand.cpp:151: error: 'DES_ede3_cbc_encrypt' was not declared in this scope
Dodałem do oryginału:
#include <string.h>
i kompiluje mi się to poleceniem:
g++ -I /usr/include/openssl unwand.cpp -l ssl
a czy działa?