From 0085adf4d99d48fa229bd0126651272f6e411692 Mon Sep 17 00:00:00 2001 From: Moss Date: Sat, 1 Oct 2022 14:32:46 -0400 Subject: [PATCH] Cookies: Added Missing gcrypt Check to Chrome Decryption --- src/episode.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/episode.cpp b/src/episode.cpp index 6eb7a51..561e9cc 100644 --- a/src/episode.cpp +++ b/src/episode.cpp @@ -575,6 +575,7 @@ namespace dropout_dl { void cookie::chrome_decrypt(const std::string &password, int iterations, const std::string &salt, int length) { + #ifdef DROPOUT_DL_GCRYPT this->format_from_chrome(); uint8_t key[32]; @@ -615,6 +616,10 @@ namespace dropout_dl { this->value = this->value.substr(0, this->len - 7); this->len -= 7; + #else + std::cerr << "CHROME COOKIE ERROR: Attempted to Decrypt Chrome Cookie With libgcrypt\n"; + exit(12); + #endif } void cookie::url_decode() {