projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement sptps_verify_datagram().
[tinc]
/
src
/
invitation.c
diff --git
a/src/invitation.c
b/src/invitation.c
index
3aec3b3
..
a6996cc
100644
(file)
--- a/
src/invitation.c
+++ b/
src/invitation.c
@@
-321,7
+321,7
@@
int cmd_invite(int argc, char *argv[]) {
free(filename);
ecdsa_t *key;
free(filename);
ecdsa_t *key;
- xasprintf(&filename, "%s" SLASH "invitations" SLASH "e
cdsa
_key.priv", confbase);
+ xasprintf(&filename, "%s" SLASH "invitations" SLASH "e
d25519
_key.priv", confbase);
// Remove the key if there are no outstanding invitations.
if(!count)
// Remove the key if there are no outstanding invitations.
if(!count)
@@
-722,7
+722,7
@@
make_names:
if(!b64key)
return false;
if(!b64key)
return false;
- xasprintf(&filename, "%s" SLASH "e
cdsa
_key.priv", confbase);
+ xasprintf(&filename, "%s" SLASH "e
d25519
_key.priv", confbase);
f = fopenmask(filename, "w", 0600);
if(!ecdsa_write_pem_private_key(key, f)) {
f = fopenmask(filename, "w", 0600);
if(!ecdsa_write_pem_private_key(key, f)) {
@@
-734,7
+734,7
@@
make_names:
fclose(f);
fclose(f);
- fprintf(fh, "E
CDSA
PublicKey = %s\n", b64key);
+ fprintf(fh, "E
d25519
PublicKey = %s\n", b64key);
sptps_send_record(&sptps, 1, b64key, strlen(b64key));
free(b64key);
sptps_send_record(&sptps, 1, b64key, strlen(b64key));
free(b64key);
@@
-906,7
+906,7
@@
int cmd_join(int argc, char *argv[]) {
if(!port || !*port)
port = "655";
if(!port || !*port)
port = "655";
- if(!b64decode(slash, hash,
18) || !b64decode(slash + 24, cookie, 18
))
+ if(!b64decode(slash, hash,
24) || !b64decode(slash + 24, cookie, 24
))
goto invalid;
// Generate a throw-away key for the invitation.
goto invalid;
// Generate a throw-away key for the invitation.