initial ssl support

This commit is contained in:
2025-05-08 18:31:06 +02:00
parent 8ff2bb608c
commit 79687bd48f
7 changed files with 79 additions and 32 deletions

View File

@@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "utils/colors.h"
@@ -82,3 +83,21 @@ bool my_str_equal_fn(void *a, void *b) {
}
void my_str_free_fn(void *value) { free(value); }
int my_int_hash_fn(void *key) { return *(int *)key; }
bool my_int_equal_fn(void *a, void *b) {
int ai = *(int *)a;
int bi = *(int *)b;
if (ai == bi) {
return true;
}
return false;
}
void my_int_free_fn(void *value) {
int fd = *(int *)value;
close(fd);
}