libgpac
Documentation of the core library of GPAC
GF_EventAuthorize Struct Reference

#include <events.h>

Data Fields

u8 type
 
Bool secure
 
const char * site_url
 
char * user
 
char * password
 
void(* on_usr_pass )(void *usr_cbk, const char *usr_name, const char *password, Bool store_info)
 
void * async_usr_data
 

Detailed Description

Authentication event event proc return value: 1 if info has been completed, 0 otherwise (and operation this request was for will then fail)

Field Documentation

◆ type

u8 GF_EventAuthorize::type

GF_EVENT_AUTHORIZATION

◆ secure

Bool GF_EventAuthorize::secure

set to GF_TRUE if TLS is used

◆ site_url

const char* GF_EventAuthorize::site_url

the URL the auth request is for

◆ user

char* GF_EventAuthorize::user

user name (provided buffer can hold 50 bytes). It may already be formatted, or an empty ("") string

◆ password

char* GF_EventAuthorize::password

password (provided buffer can hold 50 bytes)

◆ on_usr_pass

void(* GF_EventAuthorize::on_usr_pass) (void *usr_cbk, const char *usr_name, const char *password, Bool store_info)

async function to call back once pass is entered. If NULL, user/password must be set in the event

◆ async_usr_data

void* GF_EventAuthorize::async_usr_data

user data for async function