| /netbsd-src/external/bsd/libfido2/dist/examples/ |
| H A D | assert.c | 61 errx(1, "read_ec_pubkey"); in verify_assert() 64 errx(1, "es256_pk_new"); in verify_assert() 67 errx(1, "es256_pk_from_EC_KEY"); in verify_assert() 76 errx(1, "read_ec_pubkey"); in verify_assert() 79 errx(1, "es384_pk_new"); in verify_assert() 82 errx(1, "es384_pk_from_EC_KEY"); in verify_assert() 91 errx(1, "read_rsa_pubkey"); in verify_assert() 94 errx(1, "rs256_pk_new"); in verify_assert() 97 errx(1, "rs256_pk_from_RSA"); in verify_assert() 106 errx(1, "read_eddsa_pubkey"); in verify_assert() [all …]
|
| H A D | cred.c | 53 errx(1, "fido_cred_new"); in verify_cred() 58 errx(1, "fido_cred_set_type: %s (0x%x)", fido_strerr(r), r); in verify_cred() 63 errx(1, "fido_cred_set_clientdata: %s (0x%x)", fido_strerr(r), r); in verify_cred() 68 errx(1, "fido_cred_set_rp: %s (0x%x)", fido_strerr(r), r); in verify_cred() 73 errx(1, "fido_cred_set_authdata: %s (0x%x)", fido_strerr(r), r); in verify_cred() 78 errx(1, "fido_cred_set_extensions: %s (0x%x)", fido_strerr(r), r); in verify_cred() 82 errx(1, "fido_cred_set_rk: %s (0x%x)", fido_strerr(r), r); in verify_cred() 86 errx(1, "fido_cred_set_uv: %s (0x%x)", fido_strerr(r), r); in verify_cred() 91 errx(1, "fido_cred_set_fmt: %s (0x%x)", fido_strerr(r), r); in verify_cred() 101 errx(1, "fido_cred_set_attstmt: %s (0x%x)", fido_strerr(r), r); in verify_cred() [all …]
|
| /netbsd-src/usr.sbin/wgconfig/ |
| H A D | wgconfig.c | 90 errx(EXIT_FAILURE, "invalid key"); in format_key() 95 errx(EXIT_FAILURE, "invalid key len: %zu", key_len); in format_key() 98 errx(EXIT_FAILURE, "b64_ntop failed"); in format_key() 114 errx(EXIT_FAILURE, "invalid endpoint"); in format_endpoint() 141 errx(EXIT_FAILURE, "invalid allowedips"); in handle_allowed_ips() 195 errx(EXIT_FAILURE, "inet_ntop failed"); in handle_allowed_ips() 219 errx(EXIT_FAILURE, "malloc failed"); in ioctl_get() 232 errx(EXIT_FAILURE, "prop_dictionary_internalize failed"); in ioctl_get() 307 errx(EXIT_FAILURE, "invalid peers"); in cmd_show_all() 315 errx(EXIT_FAILURE, "invalid peer"); in cmd_show_all() [all …]
|
| /netbsd-src/external/bsd/libfido2/dist/tools/ |
| H A D | assert_verify.c | 43 errx(1, "input error"); in prepare_assert() 56 errx(1, "fido_assert_new"); in prepare_assert() 58 errx(1, "fido_assert_count: %s", fido_strerr(r)); in prepare_assert() 66 errx(1, "fido_assert_set: %s", fido_strerr(r)); in prepare_assert() 70 errx(1, "fido_assert_set_up: %s", fido_strerr(r)); in prepare_assert() 74 errx(1, "fido_assert_set_uv: %s", fido_strerr(r)); in prepare_assert() 79 errx(1, "fido_assert_set_extensions: %s", in prepare_assert() 106 errx(1, "read_ec_pubkey"); in load_pubkey() 108 errx(1, "es256_pk_new"); in load_pubkey() 110 errx(1, "es256_pk_from_EC_KEY"); in load_pubkey() [all …]
|
| H A D | assert_get.c | 52 errx(1, "invalid assignment '%s'", assignment); in parse_toggle() 62 errx(1, "unknown value '%s'", val); in parse_toggle() 71 errx(1, "unknown key '%s'", key); in parse_toggle() 99 errx(1, "input error"); in prepare_assert() 115 errx(1, "fido_assert_new"); in prepare_assert() 120 errx(1, "fido_assert_set: %s", fido_strerr(r)); in prepare_assert() 122 errx(1, "fido_assert_set_up: %s", fido_strerr(r)); in prepare_assert() 124 errx(1, "fido_assert_set_uv: %s", fido_strerr(r)); in prepare_assert() 129 errx(1, "fido_assert_set_extensions: %s", in prepare_assert() 133 errx(1, "fido_assert_set_hmac_salt: %s", in prepare_assert() [all …]
|
| H A D | cred_make.c | 37 errx(1, "input error"); in prepare_cred() 49 errx(1, "fido_cred_new"); in prepare_cred() 57 errx(1, "fido_cred_set: %s", fido_strerr(r)); in prepare_cred() 61 errx(1, "fido_cred_set_rk: %s", fido_strerr(r)); in prepare_cred() 65 errx(1, "fido_cred_set_uv: %s", fido_strerr(r)); in prepare_cred() 70 errx(1, "fido_cred_set_extensions: %s", fido_strerr(r)); in prepare_cred() 75 errx(1, "fido_cred_set_extensions: %s", fido_strerr(r)); in prepare_cred() 112 errx(1, "output error"); in print_attcred() 159 errx(1, "-c: invalid argument '%s'", optarg); in cred_make() 200 errx(1, "unknown type %s", argv[1]); in cred_make() [all …]
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/ntlm/ |
| H A D | test_ntlm.c | 72 errx(1, "heim_ntlm_encode_type1"); in test_parse() 82 errx(1, "heim_ntlm_encode_type1"); in test_parse() 85 errx(1, "parser got domain wrong: %s", type1.domain); in test_parse() 88 errx(1, "parser got hostname wrong: %s", type1.hostname); in test_parse() 108 errx(1, "heim_ntlm_encode_type2"); in test_parse() 118 errx(1, "heim_ntlm_decode_type2"); in test_parse() 145 errx(1, "heim_ntlm_encode_type3"); in test_parse() 157 errx(1, "heim_ntlm_decode_type3"); in test_parse() 160 errx(1, "type3 ws wrong"); in test_parse() 163 errx(1, "type3 targetname wrong"); in test_parse() [all …]
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/gssapi/ |
| H A D | test_context.c | 101 errx(1, "name '%s' not unknown", name); in string_to_oid() 120 errx(1, "internal error: oidarray must be enlarged"); in string_to_oids() 128 errx(1, "too many mech names given"); in string_to_oids() 209 errx(1, "init_sec_context: %s", in loop() 238 errx(1, "accept_sec_context: %s", in loop() 260 errx(1, "got delegated cred but didn't expect one"); in loop() 262 errx(1, "asked for delegarated cred but did get one"); in loop() 264 errx(1, "got deleg_cred cred but didn't ask"); in loop() 267 errx(1, "mech mismatch"); in loop() 271 errx(1, "num loops %d was lager then max loops %d", in loop() [all …]
|
| H A D | test_kcred.c | 73 errx(1, "gss_acquire_cred"); in copy_import() 78 errx(1, "gss_inquire_cred"); in copy_import() 82 errx(1, "krb5_init_context"); in copy_import() 90 errx(1, "gss_krb5_copy_ccache"); in copy_import() 94 errx(1, "gss_krb5_import_cred"); in copy_import() 99 errx(1, "gss_inquire_cred 2"); in copy_import() 103 errx(1, "gss_compare_name"); in copy_import() 105 errx(1, "names not equal"); in copy_import() 108 errx(1, "lifetime not equal %lu != %lu", in copy_import() 114 errx(1, "usages disjoined"); in copy_import() [all …]
|
| /netbsd-src/tests/lib/libutil/ |
| H A D | t_pidfile.c | 79 errx(EXIT_FAILURE, "Cannot open expected pidfile '%s'", path); in check_pidfile() 82 errx(EXIT_FAILURE, "Failed to read pid from pidfile '%s'", in check_pidfile() 87 errx(EXIT_FAILURE, "Pid in pidfile (%d) does not match " in check_pidfile() 99 errx(EXIT_FAILURE, "The pidfile %s was not deleted", in ensure_deleted() 137 errx(EXIT_FAILURE, "Cannot allocate memory for path"); in generate_varrun_pidfile() 150 errx(EXIT_FAILURE, "Failed to create pidfile with default " in helper_default_path() 177 errx(EXIT_FAILURE, "Failed to create pidfile with custom " in helper_custom_basename() 204 errx(EXIT_FAILURE, "Failed to create pidfile '%s'", path); in helper_custom_path() 229 errx(EXIT_FAILURE, "Failed to create pidfile with default " in helper_change_basenames() 233 errx(EXIT_FAILURE, "Failed to recreate pidfile with default " in helper_change_basenames() [all …]
|
| /netbsd-src/external/bsd/pkg_install/dist/lib/ |
| H A D | vulnerabilities-file.c | 86 errx(EXIT_FAILURE, "memory allocation failed"); in prepare_raw_file() 105 errx(EXIT_FAILURE, "Invalid PGP signature"); in verify_signature_pkcs7() 107 errx(EXIT_FAILURE, "No PKCS7 signature"); in verify_signature_pkcs7() 111 errx(EXIT_FAILURE, "No PKCS7 signature"); in verify_signature_pkcs7() 115 errx(EXIT_FAILURE, "Invalid PKCS7 signature"); in verify_signature_pkcs7() 120 errx(EXIT_FAILURE, "Unable to verify PKCS7 signature"); in verify_signature_pkcs7() 122 errx(EXIT_FAILURE, "OpenSSL support is not compiled in"); in verify_signature_pkcs7() 249 errx(EXIT_FAILURE, "Invalid #CHECKSUM"); in verify_hash() 254 errx(EXIT_FAILURE, "Invalid #CHECKSUM"); in verify_hash() 265 errx(EXIT_FAILURE, "Missing newline in pkg-vulnerabilities"); in verify_hash() [all …]
|
| /netbsd-src/tests/lib/libc/stdlib/ |
| H A D | h_getopt_long.c | 64 errx(1, "missing optstring at line %ld", in main() 80 errx(1, "missing longopts at line %ld", in main() 97 errx(1, "longopt: without longopts at line %ld", in main() 100 errx(1, "longopt: too many options at line %ld", in main() 107 errx(1, "missing longopt at line %ld", in main() 124 errx(1, "unknown has_arg %s at line %ld", in main() 137 errx(1, "missing val at line %ld", in main() 143 errx(1, "invalid val at line %ld", in main() 155 errx(1, "Missing args"); in main() 168 errx(1, "missing result at line %ld", in main() [all …]
|
| /netbsd-src/tests/rump/rumpkern/h_client/ |
| H A D | h_forkcli.c | 25 errx(1, "unexpected pid %d", pid1); in simple() 29 errx(1, "write newlyopened /dev/null"); in simple() 43 errx(1, "unexpected pid %d", pid2); in simple() 45 errx(1, "child and parent pids are equal"); in simple() 49 errx(1, "write child /dev/null"); in simple() 58 errx(1, "write parent /dev/null"); in simple() 62 errx(1, "child exited with status %d", status); in simple() 64 errx(1, "write parent /dev/null"); in simple() 87 errx(1, "pipe"); in pipecomm() 104 errx(1, "teststring doesn't match, got %s", buf); in pipecomm() [all …]
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/asn1/ |
| H A D | asn1_print.c | 70 errx (1, "der_get_tag: %s", error_message (ret)); in loop() 72 errx (1, "unreasonable length (%u) > %u", in loop() 89 errx (1, "der_get_tag: %s", error_message (ret)); in loop() 91 errx (1, "unreasonable tag length (%u) > %u", in loop() 103 errx(1, "indef form used on unsupported object"); in loop() 107 errx(1, "indefinite form used recursively more then %lu " in loop() 114 errx (1, "unreasonable inner length (%u) > %u", in loop() 149 errx (1, "der_get_integer: %s", error_message (ret)); in loop() 157 errx (1, "der_get_heim_integer: %s", in loop() 161 errx (1, "der_print_hex_heim_integer: %s", in loop() [all …]
|
| H A D | check-der.c | 84 errx(1, "malloc"); in test_integer() 86 errx(1, "malloc"); in test_integer() 208 errx(1, "malloc"); in test_unsigned() 210 errx(1, "malloc"); in test_unsigned() 244 errx(1, "malloc"); in test_octet_string() 246 errx(1, "malloc"); in test_octet_string() 286 errx(1, "malloc"); in test_bmp_string() 288 errx(1, "malloc"); in test_bmp_string() 291 errx(1, "malloc"); in test_bmp_string() 293 errx(1, "malloc"); in test_bmp_string() [all …]
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
| H A D | test_engine_dso.c | 92 errx(1, "DH_compute_key failed for server"); in dh_test() 95 errx(1, "DH_compute_key failed for client"); in dh_test() 98 errx(1, "DH_compute_key size mismatch"); in dh_test() 101 errx(1, "DH_compute_key key mismatch"); in dh_test() 173 errx(1, "ENGINE_by_dso failed"); in main() 189 errx(77, "no functional random device, can't execute tests"); in main() 226 errx(1, "failed to private encrypt"); in main() 230 errx(1, "failed to public decrypt"); in main() 233 errx(1, "output buffer not same length: %d", (int)keylen); in main() 236 errx(1, "string not the same after decryption"); in main() [all …]
|
| H A D | test_rsa.c | 88 errx(1, "res: ENOMEM"); in check_rsa() 92 errx(1, "res2: ENOMEM"); in check_rsa() 98 errx(1, "failed to private encrypt: %d %d", (int)len, (int)keylen); in check_rsa() 101 errx(1, "keylen > RSA_size(rsa)"); in check_rsa() 105 errx(1, "failed to public decrypt: %d", (int)keylen); in check_rsa() 108 errx(1, "output buffer not same length: %d", (int)keylen); in check_rsa() 111 errx(1, "string not the same after decryption"); in check_rsa() 117 errx(1, "failed to public encrypt: %d", (int)keylen); in check_rsa() 120 errx(1, "keylen > RSA_size(rsa)"); in check_rsa() 124 errx(1, "failed to private decrypt: %d", (int)keylen); in check_rsa() [all …]
|
| /netbsd-src/usr.sbin/puffs/mount_9p/ |
| H A D | fs.c | 49 if (rv) errx(1, "p9p_handshake io failed %d, %d", rv, *a4) 92 errx(1, "server invalid response to Tversion: %d", type); in p9p_handshake() 94 errx(1, "server invalid tag: %d vs. %d", in p9p_handshake() 99 errx(1, "server invalid response: no request length"); in p9p_handshake() 101 errx(1, "server request length below minimum accepted: " in p9p_handshake() 106 errx(1, "server invalid response: no version"); in p9p_handshake() 108 errx(1, "server doesn't support %s", p9p_ver2str(p9p->protover)); in p9p_handshake() 129 errx(1, "Rattach not received, got %d", type); in p9p_handshake() 131 errx(1, "server invalid tag: %d vs. %d", tagid, rtagid); in p9p_handshake() 179 errx(1, "Rwalk not received for rnode, got %d", type); in p9p_handshake() [all …]
|
| /netbsd-src/external/bsd/kyua-testers/dist/ |
| H A D | cli.c | 78 errx(usage_error ? EXIT_USAGE_ERROR : EXIT_INTERNAL_ERROR, in check_error() 102 errx(EXIT_USAGE_ERROR, "%s '%s' (not a number)", message, str); in parse_ulong() 104 errx(EXIT_USAGE_ERROR, "%s '%s' (out of range)", message, str); in parse_ulong() 137 errx(EXIT_USAGE_ERROR, "No test program provided"); in list_command() 139 errx(EXIT_USAGE_ERROR, "Only one test program allowed"); in list_command() 174 errx(EXIT_USAGE_ERROR, "%s's -%c requires an argument", argv[0], in test_command() 178 errx(EXIT_USAGE_ERROR, "Unknown %s option -%c", argv[0], optopt); in test_command() 189 errx(EXIT_USAGE_ERROR, "Must provide a test program, a test case name " in test_command() 236 errx(EXIT_USAGE_ERROR, "-%c requires an argument", optopt); in kyua_cli_main() 239 errx(EXIT_USAGE_ERROR, "Unknown option -%c", optopt); in kyua_cli_main() [all …]
|
| /netbsd-src/usr.bin/nc/ |
| H A D | socks.c | 80 errx(1, "getaddrinfo(\"%.64s\", \"%.64s\"): %s", h, p, in decode_addrport() 87 errx(1, "internal error: addrlen < res->ai_addrlen"); in decode_addrport() 101 errx(1, "proxy read too long"); in proxy_read_line() 209 errx(1, "unknown port \"%.64s\"", port); in socks_connect() 214 errx(1, "Too many authentication failures"); in socks_connect() 239 errx(1, "authentication method negotiation failed"); in socks_connect() 248 errx(1, "host name too long for SOCKS5"); in socks_connect() 280 errx(1, "internal error: silly AF"); in socks_connect() 291 errx(1, "connection failed, SOCKSv5 error: %s", in socks_connect() 306 errx(1, "connection failed, unsupported address type"); in socks_connect() [all …]
|
| /netbsd-src/usr.bin/nbsvtool/ |
| H A D | nbsvtool.c | 89 errx(EXIT_FAILURE, "Failed to create signature structure"); in sign_file() 135 errx(EXIT_FAILURE, "Failed to parse the signature file %s", in verify_file() 140 errx(EXIT_FAILURE, "Failed to verify signature"); in verify_file() 144 errx(EXIT_FAILURE, "Failed to get signers"); in verify_file() 147 errx(EXIT_FAILURE, "No signers ?"); in verify_file() 157 errx(EXIT_FAILURE, in verify_file() 210 errx(EXIT_FAILURE, "Can't read certificate file %s", in STACK_OF() 217 errx(EXIT_FAILURE, "No certificate found file %s", file); in STACK_OF() 252 errx(EXIT_FAILURE, "No certificate file given"); in load_keys() 254 errx(EXIT_FAILURE, "No private key file given"); in load_keys() [all …]
|
| /netbsd-src/tests/lib/librumphijack/ |
| H A D | h_client.c | 47 errx(1, "need testname as param"); in main() 68 errx(EXIT_FAILURE, "select successful"); in main() 71 errx(EXIT_FAILURE, "stdin fileno is still set"); in main() 89 errx(EXIT_FAILURE, "select successful"); in main() 95 errx(EXIT_FAILURE, "select2 successful"); in main() 113 errx(EXIT_FAILURE, "poll unexpected rv %d (%d)", in main() 116 errx(EXIT_FAILURE, "poll unexpected revents"); in main() 131 errx(EXIT_FAILURE, "unexpected fd8 %d %d", fd, errno); in main() 133 errx(EXIT_FAILURE, "fd leak?"); in main() 135 errx(EXIT_FAILURE, "rump open %d %d", fd, errno); in main()
|
| /netbsd-src/usr.bin/tip/ |
| H A D | cu.c | 94 errx(3, "only one escape character allowed"); in cumain() 106 errx(3, "bad flow setting"); in cumain() 118 errx(3, "bad parity setting"); in cumain() 132 errx(3,"more than one line specified"); in cumain() 152 errx(3, "more than one parity specified"); in cumain() 161 errx(3, "more than one parity specified"); in cumain() 185 errx(3, "more than one phone number specified"); in cumain() 217 errx(3,"all ports busy"); in cumain() 220 errx(3, "link down"); in cumain() 266 errx( in cumain() [all...] |
| /netbsd-src/usr.bin/jot/ |
| H A D | jot.c | 164 errx(EXIT_FAILURE, "Bad precision value"); in getargs() 189 errx(EXIT_FAILURE, "Bad step value: %s", in getargs() 218 errx(EXIT_FAILURE, "Bad reps value: %s", in getargs() 226 errx(EXIT_FAILURE, in getargs() 260 errx(EXIT_FAILURE, "Impossible stepsize"); in getargs() 268 errx(EXIT_FAILURE, in getargs() 276 errx(EXIT_FAILURE, in getargs() 290 errx(EXIT_FAILURE, in getargs() 354 errx(EXIT_FAILURE, "-w word too long"); in getformat() 358 errx(EXIT_FAILURE, "-w word too long"); in getformat() [all …]
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/hx509/ |
| H A D | test_soft_pkcs11.c | 96 errx(1, "C_GetFunctionList failed: %d", (int)ret); in main() 102 errx(1, "C_GetSlotList1 failed: %d", (int)ret); in main() 105 errx(1, "no slots"); in main() 112 errx(1, "C_GetSlotList2 failed: %d", (int)ret); in main() 119 errx(1, "C_GetSlotInfo failed: %d", (int)ret); in main() 122 errx(1, "no token present"); in main() 127 errx(1, "C_OpenSession failed: %d", (int)ret); in main() 131 errx(1, "C_GetTokenInfo1 failed: %d", (int)ret); in main() 137 errx(1, "C_Login failed: %d", (int)ret); in main() 142 errx(1, "C_GetTokenInfo2 failed: %d", (int)ret); in main() [all …]
|