Home
last modified time | relevance | path

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

1234

/openssh-portable/
H A Dauth-options.c178 ret = 0; in cert_option_list()
184 return ret; in cert_option_list()
192 if ((ret = calloc(1, sizeof(*ret))) == NULL) in sshauthopt_new()
195 return ret; in sshauthopt_new()
241 return ret; in sshauthopt_new_with_keys_defaults()
418 if ((ret->env = recallocarray(ret->env, ret->nenv, in sshauthopt_parse()
419 ret->nenv + 1, sizeof(*ret->env))) == NULL) { in sshauthopt_parse()
424 ret->env[ret->nenv++] = opt; in sshauthopt_parse()
464 return ret; in sshauthopt_parse()
543 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 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 Dssh-add.c127 ret = 0; in delete_file()
155 ret = 0; in delete_file()
166 return ret; in delete_file()
181 ret = 0; in delete_all()
190 return ret; in delete_all()
315 ret = 0; in add_file()
408 ret = 0; in update_card()
416 ret = -1; in update_card()
449 ret = 0; in test_key()
520 ret = 0; in lock_agent()
[all …]
H A Dsshkey.c886 ret = 0; in to_blob()
965 ret[strcspn(ret, "=")] = '\0'; in fingerprint_b64()
1273 if (ret->type != KEY_UNSPEC && ret->type != type) in sshkey_read()
1499 ret = 0; in rsa_generate_private_key()
1528 ret = 0; in dsa_generate_private_key()
1607 ret = 0; in ecdsa_generate_private_key()
2208 ret = 0; in cert_parse()
2448 ret = 0; in sshkey_from_blob_internal()
2878 ret = 0; in sshkey_certify_custom()
2990 snprintf(ret, sizeof(ret), "before %s", to); in sshkey_format_cert_validity()
[all …]
H A Dhmac.c48 struct ssh_hmac_ctx *ret; in ssh_hmac_start() local
50 if ((ret = calloc(1, sizeof(*ret))) == NULL) in ssh_hmac_start()
52 ret->alg = alg; in ssh_hmac_start()
53 if ((ret->ictx = ssh_digest_start(alg)) == NULL || in ssh_hmac_start()
54 (ret->octx = ssh_digest_start(alg)) == NULL || in ssh_hmac_start()
55 (ret->digest = ssh_digest_start(alg)) == NULL) in ssh_hmac_start()
57 ret->buf_len = ssh_digest_blocksize(ret->ictx); in ssh_hmac_start()
58 if ((ret->buf = calloc(1, ret->buf_len)) == NULL) in ssh_hmac_start()
60 return ret; in ssh_hmac_start()
62 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()
269 ret = 0; in cipher_init()
276 ret = 0; in cipher_init()
309 ret = 0; in cipher_init()
312 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 Ddigest-openssl.c120 struct ssh_digest_ctx *ret; in ssh_digest_start() local
122 if (digest == NULL || ((ret = calloc(1, sizeof(*ret))) == NULL)) in ssh_digest_start()
124 ret->alg = alg; in ssh_digest_start()
125 if ((ret->mdctx = EVP_MD_CTX_new()) == NULL) { in ssh_digest_start()
126 free(ret); in ssh_digest_start()
129 if (EVP_DigestInit_ex(ret->mdctx, digest->mdfunc(), NULL) != 1) { in ssh_digest_start()
130 ssh_digest_free(ret); in ssh_digest_start()
133 return ret; in ssh_digest_start()
H A Dreadpass.c53 pid_t pid, ret; in ssh_askpass() local
96 while ((ret = waitpid(pid, &status, 0)) == -1) in ssh_askpass()
100 if (ret == -1 || !WIFEXITED(status) || WEXITSTATUS(status) != 0) { in ssh_askpass()
120 char cr = '\r', *askpass = NULL, *ret, buf[1024]; in read_passphrase() local
158 if ((ret = ssh_askpass(askpass, prompt)) == NULL) in read_passphrase()
161 return ret; in read_passphrase()
170 ret = xstrdup(buf); in read_passphrase()
172 return ret; in read_passphrase()
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 Dsshkey-xmss.c424 ret = r; in sshkey_xmss_get_state_from_file()
428 ret = r; in sshkey_xmss_get_state_from_file()
431 ret = 0; in sshkey_xmss_get_state_from_file()
439 return ret; in sshkey_xmss_get_state_from_file()
511 ret = r; in sshkey_xmss_get_state()
522 ret = 0; in sshkey_xmss_get_state()
529 return ret; in sshkey_xmss_get_state()
540 int ret, r; in sshkey_xmss_forward_state() local
581 ret = 0; in sshkey_xmss_update_state()
587 ret = 0; in sshkey_xmss_update_state()
[all …]
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-xmss.c45 int r, ret; in ssh_xmss_sign() local
67 if ((ret = xmss_sign(key->xmss_sk, sshkey_xmss_bds_state(key), sig, &smlen, in ssh_xmss_sign()
93 if ((ret = sshkey_xmss_update_state(key, error)) != 0) { in ssh_xmss_sign()
103 r = ret; in ssh_xmss_sign()
125 int r, ret; in ssh_xmss_verify() local
167 if ((ret = xmss_sign_open(m, &mlen, sm, smlen, in ssh_xmss_verify()
170 __func__, ret); in ssh_xmss_verify()
172 if (ret != 0 || mlen != datalen) { in ssh_xmss_verify()
H A Dbitmap.c40 struct bitmap *ret; in bitmap_new() local
42 if ((ret = calloc(1, sizeof(*ret))) == NULL) in bitmap_new()
44 if ((ret->d = calloc(1, BITMAP_BYTES)) == NULL) { in bitmap_new()
45 free(ret); in bitmap_new()
48 ret->len = 1; in bitmap_new()
49 ret->top = 0; in bitmap_new()
50 return ret; in bitmap_new()
/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.c132 int ret, oflags = O_WRONLY; in utimensat() local
152 ret = futimes(fd, tv); in utimensat()
154 return ret; in utimensat()
168 int ret, oflags = O_WRONLY; in fchownat() local
185 return ret; in fchownat()
199 int ret, oflags = O_WRONLY; in fchmodat() local
214 ret = fchmod(fd, mode); in fchmodat()
216 return ret; in fchmodat()
224 int fd, ret, saverrno; in truncate() local
233 if (ret == -1) in truncate()
[all …]
H A Dgetgrouplist.c50 int ret, maxgroups; in getgrouplist() local
53 ret = 0; in getgrouplist()
81 ret = -1; in getgrouplist()
92 return (ret); in getgrouplist()
/openssh-portable/regress/unittests/sshkey/
H A Dcommon.c47 struct sshbuf *ret; in load_file() local
53 return ret; in load_file()
59 struct sshbuf *ret = load_file(name); in load_text_file() local
63 for (p = sshbuf_ptr(ret); sshbuf_len(ret) > 0;) { in load_text_file()
64 if (p[sshbuf_len(ret) - 1] == '\r' || in load_text_file()
65 p[sshbuf_len(ret) - 1] == '\t' || in load_text_file()
66 p[sshbuf_len(ret) - 1] == ' ' || in load_text_file()
67 p[sshbuf_len(ret) - 1] == '\n') in load_text_file()
74 return ret; in load_text_file()
81 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/
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 119 milliseconds

1234