X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Finvitation.c;h=6c0b0afb825f75cd7846c42a2a715aa329eb8f45;hb=f38b9f67f87c364c50fd21d48aa85f946675b4e2;hp=f75bf40928f91af97b3241c12862756eba9fab73;hpb=158cbe99f972a1613b7d4d95abfe5fe48e019e67;p=meshlink diff --git a/src/invitation.c b/src/invitation.c index f75bf409..6c0b0afb 100644 --- a/src/invitation.c +++ b/src/invitation.c @@ -25,7 +25,6 @@ #include "ecdsagen.h" #include "invitation.h" #include "netutl.h" -#include "rsagen.h" #include "sptps.h" #include "tincctl.h" #include "utils.h" @@ -712,19 +711,7 @@ make_names: sptps_send_record(&sptps, 1, b64key, strlen(b64key)); free(b64key); - - rsa_t *rsa = rsa_generate(2048, 0x1001); - xasprintf(&filename, "%s" SLASH "rsa_key.priv", confbase); - f = fopenmask(filename, "w", 0600); - - rsa_write_pem_private_key(rsa, f); - fclose(f); - - rsa_write_pem_public_key(rsa, fh); - fclose(fh); - ecdsa_free(key); - rsa_free(rsa); check_port(name);