Refactor base64 functions to common static library.

This commit is contained in:
Roger A. Light
2024-03-17 21:34:27 +00:00
parent 9fe8b95dcf
commit 16d465fa49
27 changed files with 41 additions and 70 deletions

View File

@@ -27,7 +27,6 @@ Contributors:
#include <stddef.h>
#include <string.h>
#include "base64_mosq.h"
#include "mosquitto_internal.h"
#include "mosquitto/mqtt_protocol.h"
#include "net_mosq.h"
@@ -350,7 +349,7 @@ int ws__create_accept_key(const char *client_key, size_t client_key_len, char **
if(EVP_DigestFinal_ex(evp, accept_key_hash, &accept_key_hash_len) != 0){
EVP_MD_CTX_free(evp);
return base64__encode(accept_key_hash, accept_key_hash_len, encoded);
return mosquitto_base64_encode(accept_key_hash, accept_key_hash_len, encoded);
}
}
}