src/bin/psql/command.c
static void
printSSLInfo(void)
{
	const char *protocol;
	const char *cipher;
	const char *bits;
	const char *compression;

	if (!PQsslInUse(pset.db))
		return;					/* no SSL */

	protocol = PQsslAttribute(pset.db, "protocol");
	cipher = PQsslAttribute(pset.db, "cipher");
	bits = PQsslAttribute(pset.db, "key_bits");
	compression = PQsslAttribute(pset.db, "compression");

	printf(_("SSL connection (protocol: %s, cipher: %s, bits: %s, compression: %s)\n"),
		   protocol ? protocol : _("unknown"),
		   cipher ? cipher : _("unknown"),
		   bits ? bits : _("unknown"),
		   (compression && strcmp(compression, "off") != 0) ? _("on") : _("off"));
}
/*
 * printSSLInfo
 *
 * Prints information about the current SSL connection, if SSL is in use
 */
printSSLInfo
Prints information about the current SSL connection, if SSL is in use
printSSLInfo Prints information about the current SSL connection if SSL is in use
static void
printSSLInfo(void)
{
	const char *protocol;
	const char *cipher;
	const char *bits;
	const char *compression;
	if (!PQsslInUse(pset.db))
		return;					
	protocol = PQsslAttribute(pset.db, "protocol");
	cipher = PQsslAttribute(pset.db, "cipher");
	bits = PQsslAttribute(pset.db, "key_bits");
	compression = PQsslAttribute(pset.db, "compression");
	printf(_("SSL connection (protocol: %s, cipher: %s, bits: %s, compression: %s)\n"),
		   protocol ? protocol : _("unknown"),
		   cipher ? cipher : _("unknown"),
		   bits ? bits : _("unknown"),
		   (compression && strcmp(compression, "off") != 0) ? _("on") : _("off"));
}
static void printSSLInfo ( void ) { const char * protocol ; const char * cipher ; const char * bits ; const char * compression ; if ( ! PQsslInUse ( pset . db ) ) return ; protocol = PQsslAttribute ( pset . db , " " ) ; cipher = PQsslAttribute ( pset . db , " " ) ; bits = PQsslAttribute ( pset . db , " " ) ; compression = PQsslAttribute ( pset . db , " " ) ; printf ( _ ( " \n " ) , protocol ? protocol : _ ( " " ) , cipher ? cipher : _ ( " " ) , bits ? bits : _ ( " " ) , ( compression && strcmp ( compression , " " ) != 0 ) ? _ ( " " ) : _ ( " " ) ) ; }
printSSLInfo
 Prints information about the current SSL connection, if SSL is in use
printSSLInfo Prints information about the current SSL connection if SSL is in use
/* no SSL */