setting up vs
This commit is contained in:
23
src/client_backend/client_backend.cpp
Normal file
23
src/client_backend/client_backend.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#include <iostream>
|
||||
#include <curl/curl.h>
|
||||
#include <openssl/md5.h>
|
||||
#include "md5hash.h"
|
||||
int main() {
|
||||
char md5Hash[2 * MD5_DIGEST_LENGTH + 1]; // +1 for null-terminator
|
||||
md5_file("C:\\Users\\janis\\Documents\\Projekte_mit_c\\ma\\ma\\src\\client_backend\\x64\\Debug\\client_backend.exe", md5Hash);
|
||||
printf("%s", md5Hash);
|
||||
|
||||
CURL* curl = curl_easy_init();
|
||||
|
||||
if (!curl) {
|
||||
std::cerr << "Failed to initialize libcurl." << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::cout << "libcurl is correctly installed and initialized." << std::endl;
|
||||
|
||||
// Clean up libcurl
|
||||
curl_easy_cleanup(curl);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user