Home
last modified time | relevance | path

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

1234

/openssh-portable/
H A Dauth-options.c181 ret = 0; in cert_option_list()
187 return ret; in cert_option_list()
195 if ((ret = calloc(1, sizeof(*ret))) == NULL) in sshauthopt_new()
198 return ret; in sshauthopt_new()
243 return ret; in sshauthopt_new_with_keys_defaults()
424 if ((ret->env = recallocarray(ret->env, ret->nenv, in sshauthopt_parse()
425 ret->nenv + 1, sizeof(*ret->env))) == NULL) { in sshauthopt_parse()
430 ret->env[ret->nenv++] = opt; in sshauthopt_parse()
470 return ret; in sshauthopt_parse()
549 if (dup_strings(&ret->env, &ret->nenv, in sshauthopt_merge()
[all …]
H A Dutf8.c125 ret = -1; in vasnmprintf()
134 ret = 0; in vasnmprintf()
157 ret = -1; in vasnmprintf()
224 ret = -1; in vasnmprintf()
225 return ret; in vasnmprintf()
244 int ret; in snmprintf() local
261 int ret; in asmprintf() local
280 int ret; in vfmprintf() local
287 ret = -1; in vfmprintf()
296 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 Daddrmatch.c67 ret = -2; in addr_match_list()
75 ret = -2; in addr_match_list()
85 ret = 1; in addr_match_list()
96 return ret; in addr_match_list()
125 ret = -1; in addr_match_cidr_list()
138 ret = -1; in addr_match_cidr_list()
145 ret = -1; in addr_match_cidr_list()
152 ret = -1; in addr_match_cidr_list()
157 ret = -1; in addr_match_cidr_list()
162 ret = 1; in addr_match_cidr_list()
[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.c175 ret = SSH_ERR_ALLOC_FAIL; in ssh_ecdsa_sk_verify()
179 ret = SSH_ERR_INVALID_FORMAT; in ssh_ecdsa_sk_verify()
185 ret = SSH_ERR_INVALID_FORMAT; in ssh_ecdsa_sk_verify()
191 ret = SSH_ERR_INVALID_FORMAT; in ssh_ecdsa_sk_verify()
198 ret = SSH_ERR_INVALID_FORMAT; in ssh_ecdsa_sk_verify()
210 ret = SSH_ERR_INVALID_FORMAT; in ssh_ecdsa_sk_verify()
235 ret = SSH_ERR_ALLOC_FAIL; in ssh_ecdsa_sk_verify()
239 ret = SSH_ERR_LIBCRYPTO_ERROR; in ssh_ecdsa_sk_verify()
246 ret = SSH_ERR_ALLOC_FAIL; in ssh_ecdsa_sk_verify()
290 ret = 0; 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 Dssh-add.c155 ret = 0; in delete_stdin()
159 return ret; in delete_stdin()
177 ret = 0; in delete_file()
197 ret = 0; in delete_file()
205 return ret; in delete_file()
220 ret = 0; in delete_all()
229 return ret; in delete_all()
369 ret = 0; in add_file()
461 ret = 0; in update_card()
469 ret = -1; in update_card()
[all …]
H A Dsshkey.c970 ret = 0; in to_blob()
1047 ret[strcspn(ret, "=")] = '\0'; in fingerprint_b64()
1357 if (ret->type != KEY_UNSPEC && ret->type != type) in sshkey_read()
1603 ret = 0; in rsa_generate_private_key()
1632 ret = 0; in dsa_generate_private_key()
1705 ret = 0; in ecdsa_generate_private_key()
2312 ret = 0; in cert_parse()
2578 ret = 0; in sshkey_from_blob_internal()
3046 ret = 0; in sshkey_certify_custom()
3193 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
184 return ret; in read_passphrase()
193 ret = xstrdup(buf); in read_passphrase()
195 return ret; in read_passphrase()
246 struct notifier_ctx *ret = NULL; in notify_start() local
288 if ((ret = calloc(1, sizeof(*ret))) == NULL) { in notify_start()
292 ret->pid = pid; in notify_start()
293 ret->osigchld = osigchld; in notify_start()
296 return ret; in notify_start()
302 int ret; in notify_complete() local
[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.c121 char *tmp, *ret = NULL; in cipher_alg_list() local
130 if (ret != NULL) in cipher_alg_list()
131 ret[rlen++] = sep; in cipher_alg_list()
134 free(ret); in cipher_alg_list()
137 ret = tmp; in cipher_alg_list()
141 return ret; in cipher_alg_list()
279 ret = 0; in cipher_init()
286 ret = 0; in cipher_init()
319 ret = 0; in cipher_init()
322 if (ret == 0) { in cipher_init()
[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()
/openssh-portable/regress/unittests/misc/
H A Dtest_expand.c28 char *ret; in test_expand() local
54 ret = dollar_expand(&parseerr, "a${BAZ}"); in test_expand()
55 ASSERT_PTR_EQ(ret, NULL); ASSERT_INT_EQ(parseerr, 0); in test_expand()
56 ret = dollar_expand(&parseerr, "${BAZ}b"); in test_expand()
57 ASSERT_PTR_EQ(ret, NULL); ASSERT_INT_EQ(parseerr, 0); in test_expand()
58 ret = dollar_expand(&parseerr, "a${BAZ}b"); in test_expand()
59 ASSERT_PTR_EQ(ret, NULL); ASSERT_INT_EQ(parseerr, 0); in test_expand()
61 ret = dollar_expand(&parseerr, "${"); in test_expand()
63 ret = dollar_expand(&parseerr, "${F"); in test_expand()
65 ret = dollar_expand(&parseerr, "${FO"); in test_expand()
[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 …]
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.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/contrib/cygwin/
H A Dssh-host-config81 local ret=0
103 let ++ret
112 return $ret
145 local ret=0
159 return $ret
231 let ++ret
250 let ++ret
275 let ++ret
293 let ++ret
345 let ++ret
[all …]
/openssh-portable/regress/unittests/authopt/
H A Dtests.c29 struct sshkey *ret; in load_key() local
34 ASSERT_PTR_NE(ret, NULL); in load_key()
35 return ret; in load_key()
43 ASSERT_PTR_NE(ret, NULL); in default_authkey_opts()
48 ret->permit_user_rc = 1; in default_authkey_opts()
49 return ret; in default_authkey_opts()
63 ret->restricted = 1; in default_authkey_restrict_opts()
64 return ret; in default_authkey_restrict_opts()
76 ret = recallocarray(ret, n, n + 1, sizeof(*ret)); in commasplit()
80 ret[n++] = cp2; in commasplit()
[all …]
/openssh-portable/regress/unittests/sshsig/
H A Dtests.c37 struct sshbuf *ret = NULL; in load_file() local
39 ASSERT_INT_EQ(sshbuf_load_file(test_data_file(name), &ret), 0); in load_file()
40 ASSERT_PTR_NE(ret, NULL); in load_file()
41 return ret; in load_file()
47 struct sshkey *ret = NULL; in load_key() local
48 ASSERT_INT_EQ(sshkey_load_public(test_data_file(name), &ret, NULL), 0); in load_key()
49 ASSERT_PTR_NE(ret, NULL); in load_key()
50 return ret; in load_key()
/openssh-portable/regress/misc/sk-dummy/
H A Dsk-dummy.c94 int ret = -1; in pack_key_ecdsa() local
151 ret = 0; in pack_key_ecdsa()
169 return ret; in pack_key_ecdsa()
205 ret = 0; in pack_key_ed25519()
209 return ret; in pack_key_ed25519()
273 ret = 0; in sk_enroll()
282 return ret; in sk_enroll()
378 ret = 0; in sig_ecdsa()
393 return ret; in sig_ecdsa()
464 ret = 0; in sig_ed25519()
[all …]

1234