Lines Matching refs:ret
83 int ret, i; in main() local
101 ret = mbedtls_x509_crt_parse_file( &cacert, "ssl/test-ca/test-ca.crt" ); in main()
102 if( ret != 0 ) in main()
104 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse_file returned %d\n\n", ret ); in main()
119 ret = mbedtls_x509_crl_parse_file( &crl, "ssl/test-ca/crl.pem" ); in main()
120 if( ret != 0 ) in main()
122 mbedtls_printf( " failed\n ! mbedtls_x509_crl_parse_file returned %d\n\n", ret ); in main()
149 ret = mbedtls_x509_crt_parse_file( &clicert, name ); in main()
150 if( ret != 0 ) in main()
152 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse_file returned %d\n\n", ret ); in main()
164 ret = mbedtls_x509_crt_verify( &clicert, &cacert, &crl, NULL, &flags, NULL, in main()
166 if( ret != 0 ) in main()
168 if( ret == MBEDTLS_ERR_X509_CERT_VERIFY_FAILED ) in main()
178 mbedtls_printf( " failed\n ! mbedtls_x509_crt_verify returned %d\n\n", ret ); in main()
193 ret = mbedtls_pk_parse_keyfile( &pk, name, NULL ); in main()
194 if( ret != 0 ) in main()
196 mbedtls_printf( " failed\n ! mbedtls_pk_parse_keyfile returned %d\n\n", ret ); in main()
213 ret = MBEDTLS_ERR_X509_FEATURE_UNAVAILABLE; in main()
217 ret = mbedtls_mpi_cmp_mpi(&mbedtls_pk_rsa( pk )->N, &mbedtls_pk_rsa( clicert.pk )->N); in main()
218 if( ret != 0 ) in main()
220 mbedtls_printf( " failed\n ! mbedtls_mpi_cmp_mpi for N returned %d\n\n", ret ); in main()
224 ret = mbedtls_mpi_cmp_mpi(&mbedtls_pk_rsa( pk )->E, &mbedtls_pk_rsa( clicert.pk )->E); in main()
225 if( ret != 0 ) in main()
227 mbedtls_printf( " failed\n ! mbedtls_mpi_cmp_mpi for E returned %d\n\n", ret ); in main()
231 ret = mbedtls_rsa_check_privkey( mbedtls_pk_rsa( pk ) ); in main()
232 if( ret != 0 ) in main()
234 mbedtls_printf( " failed\n ! mbedtls_rsa_check_privkey returned %d\n\n", ret ); in main()
253 return( ret ); in main()