From 362c2870ad86a5f087aa06acce3873c2954e7387 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Wed, 22 Jul 2015 14:30:12 +0300 Subject: [PATCH] formats: fixup typo --- sshagent/formats.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sshagent/formats.py b/sshagent/formats.py index a95811b..f8ce6eb 100644 --- a/sshagent/formats.py +++ b/sshagent/formats.py @@ -76,7 +76,8 @@ def export_public_key(pubkey, label): blob = serialize_verifying_key(decompress_pubkey(pubkey)) log.debug('fingerprint: %s', fingerprint(blob)) b64 = base64.b64encode(blob).decode('ascii') - return '{} {} {}\n'.format(ECDSA_KEY_TYPE.decode('ascii'), b64, label) + key_type = ECDSA_KEY_PREFIX + ECDSA_CURVE_NAME + return '{} {} {}\n'.format(key_type.decode('ascii'), b64, label) def import_public_key(line):