Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 93) sorted by relevance

1234

/openssh-portable/
H A Dauth-options.c180 ret = 0; in cert_option_list()
186 return ret; in cert_option_list()
194 if ((ret = calloc(1, sizeof(*ret))) == NULL) in sshauthopt_new()
197 return ret; in sshauthopt_new()
243 return ret; in sshauthopt_new_with_keys_defaults()
422 if ((ret->env = recallocarray(ret->env, ret->nenv, in sshauthopt_parse()
423 ret->nenv + 1, sizeof(*ret->env))) == NULL) { in sshauthopt_parse()
428 ret->env[ret->nenv++] = opt; in sshauthopt_parse()
468 return ret; in sshauthopt_parse()
547 if (dup_strings(&ret->env, &ret->nenv, in sshauthopt_merge()
[all …]
H A Dutf8.c126 ret = -1; in vasnmprintf()
135 ret = 0; in vasnmprintf()
158 ret = -1; in vasnmprintf()
225 ret = -1; in vasnmprintf()
226 return ret; in vasnmprintf()
245 int ret; in snmprintf() local
255 return ret; in snmprintf()
267 int ret; in vfmprintf() local
272 ret = -1; in vfmprintf()
281 int ret; in fmprintf() local
[all …]
H A Dssh-ecdsa.c78 ret = SSH_ERR_LIBCRYPTO_ERROR; in ssh_ecdsa_sign()
83 ret = SSH_ERR_ALLOC_FAIL; in ssh_ecdsa_sign()
96 ret = SSH_ERR_ALLOC_FAIL; in ssh_ecdsa_sign()
103 ret = 0; in ssh_ecdsa_sign()
109 return ret; in ssh_ecdsa_sign()
141 ret = SSH_ERR_INVALID_FORMAT; in ssh_ecdsa_verify()
156 ret = SSH_ERR_INVALID_FORMAT; in ssh_ecdsa_verify()
160 ret = SSH_ERR_ALLOC_FAIL; in ssh_ecdsa_verify()
164 ret = SSH_ERR_LIBCRYPTO_ERROR; in ssh_ecdsa_verify()
179 ret = 0; in ssh_ecdsa_verify()
[all …]
H A Dssh-dss.c78 ret = SSH_ERR_LIBCRYPTO_ERROR; in ssh_dss_sign()
86 ret = SSH_ERR_INTERNAL_ERROR; in ssh_dss_sign()
94 ret = SSH_ERR_ALLOC_FAIL; in ssh_dss_sign()
104 ret = SSH_ERR_ALLOC_FAIL; in ssh_dss_sign()
111 ret = 0; in ssh_dss_sign()
116 return ret; in ssh_dss_sign()
144 ret = SSH_ERR_INVALID_FORMAT; in ssh_dss_verify()
157 ret = SSH_ERR_INVALID_FORMAT; in ssh_dss_verify()
165 ret = SSH_ERR_ALLOC_FAIL; in ssh_dss_verify()
186 ret = 0; in ssh_dss_verify()
[all …]
H A Dssh-rsa.c202 ret = SSH_ERR_ALLOC_FAIL; in ssh_rsa_sign()
220 ret = SSH_ERR_ALLOC_FAIL; in ssh_rsa_sign()
229 ret = SSH_ERR_ALLOC_FAIL; in ssh_rsa_sign()
236 ret = 0; in ssh_rsa_sign()
241 return ret; in ssh_rsa_sign()
306 ret = SSH_ERR_ALLOC_FAIL; in ssh_rsa_verify()
328 return ret; in ssh_rsa_verify()
412 return ret; in openssh_RSA_verify()
426 ret = SSH_ERR_ALLOC_FAIL; in openssh_RSA_verify()
444 ret = 0; in openssh_RSA_verify()
[all …]
H A Dssh-ecdsa-sk.c65 int ret = SSH_ERR_INTERNAL_ERROR; in ssh_ecdsa_sk_verify() local
90 ret = SSH_ERR_INVALID_FORMAT; in ssh_ecdsa_sk_verify()
94 ret = SSH_ERR_KEY_TYPE_MISMATCH; in ssh_ecdsa_sk_verify()
105 ret = SSH_ERR_INVALID_FORMAT; in ssh_ecdsa_sk_verify()
109 ret = SSH_ERR_ALLOC_FAIL; in ssh_ecdsa_sk_verify()
113 ret = SSH_ERR_LIBCRYPTO_ERROR; in ssh_ecdsa_sk_verify()
135 ret = SSH_ERR_ALLOC_FAIL; in ssh_ecdsa_sk_verify()
162 ret = SSH_ERR_ALLOC_FAIL; in ssh_ecdsa_sk_verify()
177 ret = 0; in ssh_ecdsa_sk_verify()
183 ret = SSH_ERR_LIBCRYPTO_ERROR; in ssh_ecdsa_sk_verify()
[all …]
H A Dsshbuf.c73 if ((ret = calloc(sizeof(*ret), 1)) == NULL) in sshbuf_new()
77 ret->readonly = 0; in sshbuf_new()
80 if ((ret->cd = ret->d = calloc(1, ret->alloc)) == NULL) { in sshbuf_new()
81 free(ret); in sshbuf_new()
84 return ret; in sshbuf_new()
93 (ret = calloc(sizeof(*ret), 1)) == NULL) in sshbuf_from()
95 ret->alloc = ret->size = ret->max_size = len; in sshbuf_from()
99 ret->cd = blob; in sshbuf_from()
100 ret->d = NULL; in sshbuf_from()
101 return ret; in sshbuf_from()
[all …]
H A Dsshkey.c968 ret = 0; in to_blob()
1047 ret[strcspn(ret, "=")] = '\0'; in fingerprint_b64()
1359 if (ret->type != KEY_UNSPEC && ret->type != type) in sshkey_read()
1605 ret = 0; in rsa_generate_private_key()
1634 ret = 0; in dsa_generate_private_key()
1707 ret = 0; in ecdsa_generate_private_key()
2314 ret = 0; in cert_parse()
2580 ret = 0; in sshkey_from_blob_internal()
3047 ret = 0; in sshkey_certify_custom()
3162 snprintf(ret, sizeof(ret), "before %s", to); in sshkey_format_cert_validity()
[all …]
H A Dreadpass.c53 pid_t pid, ret; in ssh_askpass() local
169 return ret; in read_passphrase()
178 ret = xstrdup(buf); in read_passphrase()
180 return ret; in read_passphrase()
224 struct notifier_ctx *ret; in notify_start() local
266 if ((ret = calloc(1, sizeof(*ret))) == NULL) { in notify_start()
270 ret->pid = pid; in notify_start()
271 ret->osigchld = osigchld; in notify_start()
273 return ret; in notify_start()
279 int ret; in notify_complete() local
[all …]
H A Dssh-add.c130 ret = 0; in delete_file()
158 ret = 0; in delete_file()
169 return ret; in delete_file()
184 ret = 0; in delete_all()
193 return ret; in delete_all()
325 ret = 0; in add_file()
418 ret = 0; in update_card()
426 ret = -1; in update_card()
459 ret = 0; in test_key()
530 ret = 0; in lock_agent()
[all …]
H A Dhmac.c47 struct ssh_hmac_ctx *ret; in ssh_hmac_start() local
49 if ((ret = calloc(1, sizeof(*ret))) == NULL) in ssh_hmac_start()
51 ret->alg = alg; in ssh_hmac_start()
52 if ((ret->ictx = ssh_digest_start(alg)) == NULL || in ssh_hmac_start()
53 (ret->octx = ssh_digest_start(alg)) == NULL || in ssh_hmac_start()
54 (ret->digest = ssh_digest_start(alg)) == NULL) in ssh_hmac_start()
56 ret->buf_len = ssh_digest_blocksize(ret->ictx); in ssh_hmac_start()
57 if ((ret->buf = calloc(1, ret->buf_len)) == NULL) in ssh_hmac_start()
59 return ret; in ssh_hmac_start()
61 ssh_hmac_free(ret); in ssh_hmac_start()
H A Dcipher.c123 char *tmp, *ret = NULL; in cipher_alg_list() local
132 if (ret != NULL) in cipher_alg_list()
133 ret[rlen++] = sep; in cipher_alg_list()
136 free(ret); in cipher_alg_list()
139 ret = tmp; in cipher_alg_list()
143 return ret; in cipher_alg_list()
280 ret = 0; in cipher_init()
287 ret = 0; in cipher_init()
320 ret = 0; in cipher_init()
323 if (ret == 0) { in cipher_init()
[all …]
H A Daddrmatch.c221 ret = 0; in addr_pton()
225 return ret; in addr_pton()
394 ret = -2; in addr_match_list()
402 ret = -2; in addr_match_list()
412 ret = 1; in addr_match_list()
423 return ret; in addr_match_list()
453 ret = -1; in addr_match_cidr_list()
467 ret = -1; in addr_match_cidr_list()
474 ret = -1; in addr_match_cidr_list()
481 ret = -1; in addr_match_cidr_list()
[all …]
H A Dsk-usbhid.c150 return ret; in pick_first_device()
329 ret = 0; in pack_public_key_ecdsa()
340 return ret; in pack_public_key_ecdsa()
369 ret = 0; in pack_public_key_ed25519()
373 return ret; in pack_public_key_ed25519()
583 ret = 0; in sk_enroll()
629 ret = 0; in pack_sig_ecdsa()
661 ret = 0; in pack_sig_ed25519()
784 ret = 0; in sk_sign()
938 ret = 0; in read_rks()
[all …]
H A Ddigest-openssl.c117 struct ssh_digest_ctx *ret; in ssh_digest_start() local
119 if (digest == NULL || ((ret = calloc(1, sizeof(*ret))) == NULL)) in ssh_digest_start()
121 ret->alg = alg; in ssh_digest_start()
122 if ((ret->mdctx = EVP_MD_CTX_new()) == NULL) { in ssh_digest_start()
123 free(ret); in ssh_digest_start()
126 if (EVP_DigestInit_ex(ret->mdctx, digest->mdfunc(), NULL) != 1) { in ssh_digest_start()
127 ssh_digest_free(ret); in ssh_digest_start()
130 return ret; in ssh_digest_start()
H A Dsftp-glob.c69 struct dirent *ret = (struct dirent *)buf; in fudge_readdir() local
84 strlcpy(ret->d_name, od->dir[od->offset++]->filename, MAXPATHLEN); in fudge_readdir()
86 strlcpy(ret->d_name, od->dir[od->offset++]->filename, in fudge_readdir()
87 sizeof(ret->d_name)); in fudge_readdir()
95 ret->d_ino = inum++; in fudge_readdir()
100 return(ret); in fudge_readdir()
H A Daudit-bsm.c140 int ret = 0, r; in aug_get_machine() local
164 ret = -1; in aug_get_machine()
167 return ret; in aug_get_machine()
184 int ret = 0; in getacna() local
196 ret = scf_handle_bind(handle); in getacna()
197 if (ret == -1) in getacna()
204 ret = scf_handle_decode_fmri(handle, in getacna()
207 if (ret == -1) in getacna()
214 ret = scf_property_get_value(property, value); in getacna()
215 if (ret == -1) in getacna()
[all …]
H A Dssh-sk.c103 if ((ret = calloc(1, sizeof(*ret))) == NULL) { in sshsk_open()
120 return ret; in sshsk_open()
126 if ((ret->sk_api_version = dlsym(ret->dlhandle, in sshsk_open()
146 if ((ret->sk_sign = dlsym(ret->dlhandle, "sk_sign")) == NULL) { in sshsk_open()
151 if ((ret->sk_load_resident_keys = dlsym(ret->dlhandle, in sshsk_open()
158 return ret; in sshsk_open()
160 sshsk_free(ret); in sshsk_open()
400 ret = r; in make_options()
405 ret = r; in make_options()
412 ret = 0; in make_options()
[all …]
/openssh-portable/openbsd-compat/
H A Dbsd-asprintf.c42 int ret = -1; in vasprintf() local
51 ret = vsnprintf(string, INIT_SZ, fmt, ap2); in vasprintf()
52 if (ret >= 0 && ret < INIT_SZ) { /* succeeded with initial alloc */ in vasprintf()
54 } else if (ret == INT_MAX || ret < 0) { /* Bad length */ in vasprintf()
58 len = (size_t)ret + 1; in vasprintf()
65 ret = vsnprintf(newstr, len, fmt, ap2); in vasprintf()
66 if (ret >= 0 && (size_t)ret < len) { in vasprintf()
75 return (ret); in vasprintf()
89 int ret; in asprintf() local
93 ret = vasprintf(str, fmt, ap); in asprintf()
[all …]
H A Dbsd-setres_id.c31 int ret = 0, saved_errno; in setresgid() local
42 ret = -1; in setresgid()
49 ret = -1; in setresgid()
55 ret = -1; in setresgid()
58 return ret; in setresgid()
66 int ret = 0, saved_errno; in setresuid() local
77 ret = -1; in setresuid()
86 ret = -1; in setresuid()
93 ret = -1; in setresuid()
96 return ret; in setresuid()
H A Dbsd-misc.c133 int ret, oflags = O_WRONLY; in utimensat() local
154 ret = futimes(fd, tv); in utimensat()
156 return ret; in utimensat()
170 int ret, oflags = O_WRONLY; in fchownat() local
187 return ret; in fchownat()
201 int ret, oflags = O_WRONLY; in fchmodat() local
216 ret = fchmod(fd, mode); in fchmodat()
218 return ret; in fchmodat()
226 int fd, ret, saverrno; in truncate() local
235 if (ret == -1) in truncate()
[all …]
/openssh-portable/regress/unittests/sshkey/
H A Dcommon.c46 struct sshbuf *ret = NULL; in load_file() local
49 ASSERT_PTR_NE(ret, NULL); in load_file()
50 return ret; in load_file()
56 struct sshbuf *ret = load_file(name); in load_text_file() local
60 for (p = sshbuf_ptr(ret); sshbuf_len(ret) > 0;) { in load_text_file()
61 if (p[sshbuf_len(ret) - 1] == '\r' || in load_text_file()
63 p[sshbuf_len(ret) - 1] == ' ' || in load_text_file()
64 p[sshbuf_len(ret) - 1] == '\n') in load_text_file()
71 return ret; in load_text_file()
78 BIGNUM *ret = NULL; in load_bignum() local
[all …]
/openssh-portable/regress/unittests/authopt/
H A Dtests.c27 struct sshkey *ret; in load_key() local
32 ASSERT_PTR_NE(ret, NULL); in load_key()
33 return ret; in load_key()
41 ASSERT_PTR_NE(ret, NULL); in default_authkey_opts()
46 ret->permit_user_rc = 1; in default_authkey_opts()
47 return ret; in default_authkey_opts()
61 ret->restricted = 1; in default_authkey_restrict_opts()
62 return ret; in default_authkey_restrict_opts()
74 ret = recallocarray(ret, n, n + 1, sizeof(*ret)); in commasplit()
78 ret[n++] = cp2; in commasplit()
[all …]
/openssh-portable/regress/misc/sk-dummy/
H A Dsk-dummy.c87 int ret = -1; in pack_key_ecdsa() local
144 ret = 0; in pack_key_ecdsa()
162 return ret; in pack_key_ecdsa()
198 ret = 0; in pack_key_ed25519()
202 return ret; in pack_key_ed25519()
266 ret = 0; in sk_enroll()
275 return ret; in sk_enroll()
371 ret = 0; in sig_ecdsa()
386 return ret; in sig_ecdsa()
457 ret = 0; in sig_ed25519()
[all …]
/openssh-portable/regress/
H A Dnetcat.c155 ret = 1; in main()
369 ret = 0; in main()
441 ret = 0; in main()
447 ret = 1; in main()
451 exit(ret); in main()
474 ret = 0; in main()
509 exit(ret); in main()
671 int ret; in timeout_connect() local
883 if (ret == 0 || ret == -1) in readwrite()
1160 ret = 1; in udptest()
[all …]

Completed in 103 milliseconds

1234