* 0: Error
*/
int ossl_statem_client_construct_message(SSL *s, WPACKET *pkt,
- int (**confunc) (SSL *s, WPACKET *pkt),
- int *mt)
+ confunc_f *confunc, int *mt)
{
OSSL_STATEM *st = &s->statem;
/* Flush the write BIO */
int statem_flush(SSL *s);
+typedef int (*confunc_f) (SSL *s, WPACKET *pkt);
+
/*
* TLS/DTLS client state machine functions
*/
WORK_STATE ossl_statem_client_pre_work(SSL *s, WORK_STATE wst);
WORK_STATE ossl_statem_client_post_work(SSL *s, WORK_STATE wst);
int ossl_statem_client_construct_message(SSL *s, WPACKET *pkt,
- int (**confunc) (SSL *s, WPACKET *pkt),
- int *mt);
+ confunc_f *confunc, int *mt);
unsigned long ossl_statem_client_max_message_size(SSL *s);
MSG_PROCESS_RETURN ossl_statem_client_process_message(SSL *s, PACKET *pkt);
WORK_STATE ossl_statem_client_post_process_message(SSL *s, WORK_STATE wst);
WORK_STATE ossl_statem_server_pre_work(SSL *s, WORK_STATE wst);
WORK_STATE ossl_statem_server_post_work(SSL *s, WORK_STATE wst);
int ossl_statem_server_construct_message(SSL *s, WPACKET *pkt,
- int (**confunc) (SSL *s, WPACKET *pkt),
- int *mt);
+ confunc_f *confunc,int *mt);
unsigned long ossl_statem_server_max_message_size(SSL *s);
MSG_PROCESS_RETURN ossl_statem_server_process_message(SSL *s, PACKET *pkt);
WORK_STATE ossl_statem_server_post_process_message(SSL *s, WORK_STATE wst);
* 0: Error
*/
int ossl_statem_server_construct_message(SSL *s, WPACKET *pkt,
- int (**confunc) (SSL *s, WPACKET *pkt),
- int *mt)
+ confunc_f *confunc, int *mt)
{
OSSL_STATEM *st = &s->statem;