/* First, check for simple PublicKey statement */
if(get_config_string(lookup_config(c->config_tree, "PublicKey"), &key)) {
- if(BN_hex2bn(&n, key) != strlen(key)) {
+ if((size_t)BN_hex2bn(&n, key) != strlen(key)) {
free(key);
logger(LOG_ERR, "Invalid PublicKey for %s!", c->name);
return false;
myself->connection->rsa_key = RSA_new();
// RSA_blinding_on(myself->connection->rsa_key, NULL);
- if(BN_hex2bn(&d, key) != strlen(key)) {
+ if((size_t)BN_hex2bn(&d, key) != strlen(key)) {
logger(LOG_ERR, "Invalid PrivateKey for myself!");
free(key);
return false;
return false;
}
- if(BN_hex2bn(&n, pubkey) != strlen(pubkey)) {
+ if((size_t)BN_hex2bn(&n, pubkey) != strlen(pubkey)) {
free(pubkey);
BN_free(d);
logger(LOG_ERR, "Invalid PublicKey for myself!");
char *address = NULL;
char *proxy = NULL;
char *space;
- char *envp[5] = {NULL};
- struct addrinfo *ai, *aip, hint = {0};
+ char *envp[5] = {};
+ struct addrinfo *ai, *aip, hint = {};
bool choice;
int i, err;
int replaywin_int;
void close_network_connections(void) {
avl_node_t *node, *next;
connection_t *c;
- char *envp[5] = {NULL};
+ char *envp[5] = {};
int i;
for(node = connection_tree->head; node; node = next) {