New sessionid object.

This commit is contained in:
Brad Arant committed 2025-05-22 09:25:55 -07:00
1 parent 2f30b3f8c4
commit 0cb8a08a73
2 files changed
+5 -12

No files matched your search

+2 -1
View File
@@ -1,11 +1,12 @@
#include "SessionId.h"
#include <openssl/ssl.h>
namespace jet {
SessionId::SessionId() {
unsigned char hashit[64];
unsigned char hash[SHA_DIGEST_LENGTH];
setBufferSize(64);
setSize(64);
sprintf((char *)hashit, "JETSESSION%ld", time(0));
SHA1(hashit, strlen((char *)hashit), hash);
sprintf(getData(), "%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",