library/src/databases/bpdb/BP-DBStringFilters.cc
// checks if a host name is reasonable for a mariadb host connect string (must be host or ip address)
checks if a host name is reasonable for a mariadb host connect string (must be host or ip address)
checks if a host name is reasonable for a mariadb host connect string ( must be host or ip address )
BP_BOOL BP_StringIsReasonableForPasswordMariaDB(char *buffer, size_t len)
{
	if(!buffer || !len)
		return BP_FALSE;
	if(!BP_StringIsReasonablePrintableString(buffer, len, BP_FALSE, BP_FALSE))
		return BP_FALSE;
	return BP_TRUE;
}
BP_BOOL BP_StringIsReasonableForPasswordMariaDB ( char * buffer , size_t len ) { if ( ! buffer || ! len ) return BP_FALSE ; if ( ! BP_StringIsReasonablePrintableString ( buffer , len , BP_FALSE , BP_FALSE ) ) return BP_FALSE ; return BP_TRUE ; }
checks if a host name is reasonable for a mariadb host connect string (must be host or ip address)
checks if a host name is reasonable for a mariadb host connect string ( must be host or ip address )
// ensure we have a buffer and length // password can be any reasonable-printable without newlines // return indicating that the path is suitable