mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-10-01 01:43:41 +08:00
replay/cabana: remove unused openssl dependency (#37680)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#include "tools/replay/util.h"
|
||||
|
||||
#include <bzlib.h>
|
||||
#include <openssl/sha.h>
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdarg>
|
||||
@@ -162,15 +161,6 @@ void precise_nano_sleep(int64_t nanoseconds, std::atomic<bool> &interrupt_reques
|
||||
}
|
||||
}
|
||||
|
||||
std::string sha256(const std::string &str) {
|
||||
unsigned char hash[SHA256_DIGEST_LENGTH];
|
||||
SHA256_CTX sha256;
|
||||
SHA256_Init(&sha256);
|
||||
SHA256_Update(&sha256, str.c_str(), str.size());
|
||||
SHA256_Final(hash, &sha256);
|
||||
return util::hexdump(hash, SHA256_DIGEST_LENGTH);
|
||||
}
|
||||
|
||||
std::vector<std::string> split(std::string_view source, char delimiter) {
|
||||
std::vector<std::string> fields;
|
||||
size_t last = 0;
|
||||
|
||||
Reference in New Issue
Block a user