]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
no newlines in log messages.
authorNick Mathewson <nickm@torproject.org>
Tue, 27 Jun 2017 22:21:35 +0000 (18:21 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 27 Jun 2017 22:21:35 +0000 (18:21 -0400)
src/common/crypto_ed25519.c

index 6ebb2a78b98944a1959313a6b0f1a302e21acd9c..1a6d19b97b55679ca8c93ef92fe382c07b17d711 100644 (file)
@@ -783,7 +783,7 @@ ed25519_validate_pubkey(const ed25519_public_key_t *pubkey)
 
   /* First check that we were not given the identity element */
   if (ed25519_point_is_identity_element(pubkey->pubkey)) {
-    log_warn(LD_CRYPTO, "ed25519 pubkey is the identity\n");
+    log_warn(LD_CRYPTO, "ed25519 pubkey is the identity");
     return -1;
   }
 
@@ -792,12 +792,12 @@ ed25519_validate_pubkey(const ed25519_public_key_t *pubkey)
    * identity element is returned. */
   if (get_ed_impl()->ed25519_scalarmult_with_group_order(result,
                                                          pubkey->pubkey) < 0) {
-    log_warn(LD_CRYPTO, "ed25519 group order scalarmult failed\n");
+    log_warn(LD_CRYPTO, "ed25519 group order scalarmult failed");
     return -1;
   }
 
   if (!ed25519_point_is_identity_element(result)) {
-    log_warn(LD_CRYPTO, "ed25519 validation failed\n");
+    log_warn(LD_CRYPTO, "ed25519 validation failed");
     return -1;
   }