FreeBSD/contrib/ntp/libntp/ssl_init.c
/*
 * keytype_name		returns OpenSSL short name for digest by NID.
 *
 * Used by ntpq and ntpdc keytype()
 */
keytype_name         returns OpenSSL short name for digest by NID.
Used by ntpq and ntpdc keytype()
keytype_name returns OpenSSL short name for digest by NID . Used by ntpq and ntpdc keytype ()
const char *
keytype_name(
	int nid
	)
{
	static const char unknown_type[] = "(unknown key type)";
	const char *name;
#ifdef OPENSSL
	INIT_SSL();
	name = OBJ_nid2sn(nid);
	if (NULL == name)
		name = unknown_type;
#else	
	if (NID_md5 == nid)
		name = "MD5";
	else
		name = unknown_type;
#endif
	return name;
}
const char * keytype_name ( int nid ) { static const char unknown_type [ ] = " " ; const char * name ; #ifdef OPENSSL INIT_SSL ( ) ; name = OBJ_nid2sn ( nid ) ; if ( NULL == name ) name = unknown_type ; #else if ( NID_md5 == nid ) name = " " ; else name = unknown_type ; #endif return name ; }
keytype_name         returns OpenSSL short name for digest by NID.
keytype_name returns OpenSSL short name for digest by NID .
/* !OPENSSL follows */