Home | History | Annotate | Download | only in test

Lines Matching refs:err

67   err_status_t err;
72 err = srtp_init();
73 if (err) {
74 printf("error: srtp init failed with error code %d\n", err);
88 err = crypto_kernel_set_debug_module(optarg_s, 1);
89 if (err) {
100 err = crypto_kernel_list_debug_modules();
101 if (err) {
108 err = test_dtls_srtp();
109 if (err) {
110 printf("\nerror (code %d)\n", err);
129 err_status_t err;
132 err = srtp_create(&s, NULL);
133 if (err)
134 return err;
143 err = srtp_protect(s, test_packet, &test_packet_len);
144 if (err != err_status_no_ctx) {
146 err);
149 err = srtp_unprotect(s, test_packet, &test_packet_len);
150 if (err != err_status_no_ctx) {
152 err);
155 err = srtp_protect_rtcp(s, test_packet, &test_packet_len);
156 if (err != err_status_no_ctx) {
158 err);
161 err = srtp_unprotect_rtcp(s, test_packet, &test_packet_len);
162 if (err != err_status_no_ctx) {
164 err);
181 err = crypto_policy_set_from_profile_for_rtp(&policy.rtp, profile);
182 if (err) return err;
183 err = crypto_policy_set_from_profile_for_rtcp(&policy.rtcp, profile);
184 if (err) return err;
191 err = srtp_add_stream(s, &policy);
192 if (err)
193 return err;