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

Collapse All | Expand All

(-)a/sshconnect2.c (+5 lines)
Lines 1029-1034 identity_sign(struct identity *id, u_char **sigp, size_t *lenp, Link Here
1029
	/* load the private key from the file */
1029
	/* load the private key from the file */
1030
	if ((prv = load_identity_file(id)) == NULL)
1030
	if ((prv = load_identity_file(id)) == NULL)
1031
		return SSH_ERR_KEY_NOT_FOUND;
1031
		return SSH_ERR_KEY_NOT_FOUND;
1032
	if (id->key != NULL && !sshkey_equal_public(prv, id->key)) {
1033
		error("%s: private key %s contents do not match public",
1034
		   __func__, id->filename);
1035
		return SSH_ERR_INVALID_ARGUMENT;
1036
	}
1032
	ret = sshkey_sign(prv, sigp, lenp, data, datalen,
1037
	ret = sshkey_sign(prv, sigp, lenp, data, datalen,
1033
	    key_sign_encode(prv), compat);
1038
	    key_sign_encode(prv), compat);
1034
	sshkey_free(prv);
1039
	sshkey_free(prv);

Return to bug 2737