View | Details | Raw Unified | Return to bug 2737 | Differences between
and this patch

Collapse All | Expand All

(-)a/sshconnect2.c (+5 lines)
Lines 1037-1042 identity_sign(struct identity *id, u_char **sigp, size_t *lenp, Link Here
1037
	/* load the private key from the file */
1037
	/* load the private key from the file */
1038
	if ((prv = load_identity_file(id)) == NULL)
1038
	if ((prv = load_identity_file(id)) == NULL)
1039
		return SSH_ERR_KEY_NOT_FOUND;
1039
		return SSH_ERR_KEY_NOT_FOUND;
1040
	if (id->key != NULL && !sshkey_equal_public(prv, id->key)) {
1041
		error("%s: private key %s contents do not match public",
1042
		   __func__, id->filename);
1043
		return SSH_ERR_KEY_NOT_FOUND;
1044
	}
1040
	ret = sshkey_sign(prv, sigp, lenp, data, datalen,
1045
	ret = sshkey_sign(prv, sigp, lenp, data, datalen,
1041
	    key_sign_encode(prv), compat);
1046
	    key_sign_encode(prv), compat);
1042
	sshkey_free(prv);
1047
	sshkey_free(prv);

Return to bug 2737