]> git.meshlink.io Git - meshlink/blobdiff - src/ed25519/ecdsa.c
Merge branch 'address_hint_api' into discovery
[meshlink] / src / ed25519 / ecdsa.c
index 1da27977560518afd6c519ac7edfa76a1074d545..cabec3a2d7e26a392d61d5501c44a4783d358f1a 100644 (file)
@@ -1,6 +1,6 @@
 /*
     ecdsa.c -- ECDSA key handling
-    Copyright (C) 2011-2013 Guus Sliepen <guus@tinc-vpn.org>
+    Copyright (C) 2014 Guus Sliepen <guus@meshlink.io>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@
 
 #include "ed25519.h"
 
-#define __TINC_ECDSA_INTERNAL__
+#define __MESHLINK_ECDSA_INTERNAL__
 typedef struct {
        uint8_t private[64];
        uint8_t public[32];
@@ -38,7 +38,7 @@ ecdsa_t *ecdsa_set_base64_public_key(const char *p) {
        int len = strlen(p);
 
        if(len != 43) {
-               logger(DEBUG_ALWAYS, LOG_ERR, "Invalid size %s for public key!", len);
+               logger(DEBUG_ALWAYS, LOG_ERR, "Invalid size %d for public key!", len);
                return 0;
        }