FreeBSD/crypto/openssh/authfd.c
/* encode signature algoritm in flag bits, so we can keep the msg format */
encode signature algoritm in flag bits, so we can keep the msg format
encode signature algoritm in flag bits so we can keep the msg format
static u_int
agent_encode_alg(struct sshkey *key, const char *alg)
{
	if (alg != NULL && key->type == KEY_RSA) {
		if (strcmp(alg, "rsa-sha2-256") == 0)
			return SSH_AGENT_RSA_SHA2_256;
		else if (strcmp(alg, "rsa-sha2-512") == 0)
			return SSH_AGENT_RSA_SHA2_512;
	}
	return 0;
}
static u_int agent_encode_alg ( struct sshkey * key , const char * alg ) { if ( alg != NULL && key -> type == KEY_RSA ) { if ( strcmp ( alg , " " ) == 0 ) return SSH_AGENT_RSA_SHA2_256 ; else if ( strcmp ( alg , " " ) == 0 ) return SSH_AGENT_RSA_SHA2_512 ; } return 0 ; }
encode signature algoritm in flag bits, so we can keep the msg format
encode signature algoritm in flag bits so we can keep the msg format