~apreiml/hare-ssh

3c8e427e04297277b12d57fd4c57220604e01fe3 — Armin Preiml 1 year, 10 months ago 0b08f7e
format::ssh::decodepublic: rename sink to src
1 files changed, 3 insertions(+), 3 deletions(-)

M format/ssh/key.ha
M format/ssh/key.ha => format/ssh/key.ha +3 -3
@@ 61,8 61,8 @@ export fn decodeprivate(src: *sshprivkey) (*key | error) = {
};

// Decodes a public key in the SSH public key format.
export fn decodepublic(sink: io::handle) (*key | error) = {
	const keytype = readstr(sink)?;
export fn decodepublic(src: io::handle) (*key | error) = {
	const keytype = readstr(src)?;
	defer free(keytype);

	let key: *key = switch (keytype) {


@@ 71,7 71,7 @@ export fn decodepublic(sink: io::handle) (*key | error) = {
	case =>
		return badcipher;
	};
	key.vtable.decodepub(key, sink)?;
	key.vtable.decodepub(key, src)?;
	return key;
};