]> tinc-vpn.org Git - tinc/blobdiff - src/connection.c
Minor type improvements in legacy protocol code
[tinc] / src / connection.c
index 16878ea8e784d47a3d371066c01ca009b825065f..533e0245b28cb9fa9ad9fbd0208fdb441da93c10 100644 (file)
@@ -58,7 +58,7 @@ connection_t *new_connection(void) {
 }
 
 #ifndef DISABLE_LEGACY
-bool init_crypto_by_nid(legacy_crypto_t *c, int cipher, int digest) {
+bool init_crypto_by_nid(legacy_crypto_t *c, nid_t cipher, nid_t digest) {
        if(!cipher_open_by_nid(&c->cipher, cipher)) {
                return false;
        }