MCPcopy Create free account
hub / github.com/cisco/libsrtp / srtp_err_reporting_init

Function srtp_err_reporting_init

crypto/kernel/err.c:57–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55static FILE *srtp_err_file = NULL;
56
57srtp_err_status_t srtp_err_reporting_init(void)
58{
59#ifdef ERR_REPORTING_STDOUT
60 srtp_err_file = stdout;
61#elif defined(ERR_REPORTING_FILE)
62 /* open file for error reporting */
63 srtp_err_file = fopen(ERR_REPORTING_FILE, "w");
64 if (srtp_err_file == NULL) {
65 return srtp_err_status_init_fail;
66 }
67#endif
68
69 return srtp_err_status_ok;
70}
71
72static srtp_err_report_handler_func_t *srtp_err_report_handler = NULL;
73

Callers 1

srtp_crypto_kernel_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected