Truxton sensitive site list get description

From truxwiki.com
Revision as of 04:11, 26 May 2021 by Sam (talk | contribs) (Created page with "This retrieves the description of the list. This corresponds to the <code>[Description]</code> column of the <code>[SensitiveSiteList]</code> table. =Syntax= <source lang="C"...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This retrieves the description of the list. This corresponds to the [Description] column of the [SensitiveSiteList] table.

Syntax

void truxton_sensitive_site_list_get_description( uint64_t ssl_handle, char * destination_string, size_t max_size );

Parameters

ssl_handle

The handle to the sensitive site list. This handle comes from calling truxton_sensitive_site_list_create().

destination_string

The string to be written to.

max_size

The maximum number of characters that can be written to destination_string.

Sample

void print_details( uint64_t ssl_handle )
{
   char id[ 65 ];
   char name[ 128 ];
   char description[ 256 ];
 
   truxton_sensitive_site_list_get_id( ssl_handle, id, sizeof( id ) );
   truxton_sensitive_site_list_get_name( ssl_handle, name, sizeof( name ) );
   truxton_sensitive_site_list_get_description( ssl_handle, description, sizeof( description ) );

   printf( "%s - %s, %s\n", id, name, description );
}