This library provides a simple and nice C++ wrapper around these libraries, so that programmers can concentrate on functionality. It offers general support for PCSC-lite, OpenSSL, PKCS#11, plus specific functionality for the SuisseID.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
406 B
17 lines
406 B
14 years ago
|
#include <openssl/opensslv.h>
|
||
|
#ifndef OPENSSL_VERSION_NUMBER
|
||
|
# error OpenSSL Version Number not Found
|
||
|
#elif OPENSSL_VERSION_NUMBER < 0x10000000L
|
||
|
# define NAME "an old pre 1.0.0 version of OpenSSL"
|
||
|
#else
|
||
|
# define NAME "a new 1.0.x version of OpenSSL"
|
||
|
#endif
|
||
|
|
||
|
#include <iostream>
|
||
|
#include <iomanip>
|
||
|
|
||
|
int main() {
|
||
|
std::cout<<std::hex<<OPENSSL_VERSION_NUMBER<<" is "<<NAME<<std::endl;
|
||
|
return 0;
|
||
|
}
|