Make functions static that are only accessed from the same compilation unit

Also removed some declarations for undefined functions.
This commit is contained in:
Tobias Brunner
2022-10-05 19:00:46 +02:00
parent c58ba0cb9f
commit 7f46c76125
23 changed files with 29 additions and 70 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ static void add(private_peer_controller_t *this, fast_request_t *request)
/**
* pem encode a public key into an allocated string
*/
char* pem_encode(chunk_t der)
static char* pem_encode(chunk_t der)
{
static const char *begin = "-----BEGIN PUBLIC KEY-----\n";
static const char *end = "-----END PUBLIC KEY-----";