Home
last modified time | relevance | path

Searched refs:src (Results 1 – 25 of 28) sorted by relevance

12

/openssh-portable/openbsd-compat/
H A Dvis.c161 strvis(char *dst, const char *src, int flag) in strvis() argument
166 for (start = dst; (c = *src);) in strvis()
167 dst = vis(dst, c, flag, *++src); in strvis()
194 src++; in strnvis()
196 i = vis(tbuf, c, flag, *++src) - tbuf; in strnvis()
201 src--; in strnvis()
210 while ((c = *src)) in strnvis()
225 len = strvis(buf, src, flag); in stravis()
242 c = *src; in strvisx()
243 dst = vis(dst, c, flag, *++src); in strvisx()
[all …]
H A Dinet_ntop.c48 static const char *inet_ntop4(const u_char *src, char *dst, size_t size);
49 static const char *inet_ntop6(const u_char *src, char *dst, size_t size);
60 inet_ntop(int af, const void *src, char *dst, socklen_t size) in inet_ntop() argument
64 return (inet_ntop4(src, dst, (size_t)size)); in inet_ntop()
66 return (inet_ntop6(src, dst, (size_t)size)); in inet_ntop()
86 inet_ntop4(const u_char *src, char *dst, size_t size) in inet_ntop4() argument
92 l = snprintf(tmp, size, fmt, src[0], src[1], src[2], src[3]); in inet_ntop4()
108 inet_ntop6(const u_char *src, char *dst, size_t size) in inet_ntop6() argument
131 words[i / 2] |= (src[i] << ((1 - (i % 2)) << 3)); in inet_ntop6()
180 if (!inet_ntop4(src+12, tp, (size_t)(ep - tp))) in inet_ntop6()
H A Dbase64.c134 b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize) in b64_ntop() argument
142 input[0] = *src++; in b64_ntop()
143 input[1] = *src++; in b64_ntop()
144 input[2] = *src++; in b64_ntop()
165 input[i] = *src++; in b64_ntop()
197 b64_pton(char const *src, u_char *target, size_t targsize) in b64_pton() argument
206 while ((ch = *src++) != '\0') { in b64_pton()
266 ch = *src++; /* Skip it, get next. */ in b64_pton()
274 for (; ch != '\0'; ch = *src++) in b64_pton()
280 ch = *src++; /* Skip the = */ in b64_pton()
[all …]
H A Dopenbsd-compat.h97 size_t strlcpy(char *dst, const char *src, size_t siz);
101 size_t strlcat(char *dst, const char *src, size_t siz);
157 const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
286 # define VA_COPY(dest, src) va_copy(dest, src) argument
289 # define VA_COPY(dest, src) __va_copy(dest, src) argument
291 # define VA_COPY(dest, src) (dest) = (src) argument
H A Dstrlcpy.c33 strlcpy(char *dst, const char *src, size_t siz) in strlcpy() argument
36 const char *s = src; in strlcpy()
55 return(s - src - 1); /* count does not include NUL */ in strlcpy()
H A Dstrlcat.c35 strlcat(char *dst, const char *src, size_t siz) in strlcat() argument
38 const char *s = src; in strlcat()
59 return(dlen + (s - src)); /* count does not include NUL */ in strlcat()
H A Dbase64.h50 int b64_ntop(u_char const *src, size_t srclength, char *target,
58 int b64_pton(char const *src, u_char *target, size_t targsize);
H A Dsha2.c123 (cp)[0] = (src) >> 56; \
125 (cp)[2] = (src) >> 40; \
126 (cp)[3] = (src) >> 32; \
127 (cp)[4] = (src) >> 24; \
128 (cp)[5] = (src) >> 16; \
129 (cp)[6] = (src) >> 8; \
130 (cp)[7] = (src); \
134 (cp)[0] = (src) >> 24; \
135 (cp)[1] = (src) >> 16; \
136 (cp)[2] = (src) >> 8; \
[all …]
/openssh-portable/openbsd-compat/regress/
H A Dsnprintftest.c50 char *src = NULL; in main() local
57 if ((src = malloc(BUFSZ)) == NULL) { in main()
60 memset(src, 'a', BUFSZ); in main()
61 snprintf(b, sizeof(b), "%.*s", 1, src); in main()
72 free(src); in main()
/openssh-portable/
H A Dinstall-sh94 src=
241 for src
244 case $src in
245 -* | [=\(\)!]) src=./$src;;
249 dst=$src
258 if test ! -f "$src" && test ! -d "$src"; then
259 echo "$0: $src does not exist." >&2
277 dst=$dstdir/`basename "$src"`
460 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
466 # errors from the above "$doit $cpprog $src $dsttmp" command.
H A Dcipher-chachapoly.c71 const u_char *src, u_int len, u_int aadlen, u_int authlen, int do_encrypt) in chachapoly_crypt() argument
90 const u_char *tag = src + aadlen + len; in chachapoly_crypt()
92 poly1305_auth(expected_tag, src, aadlen + len, poly_key); in chachapoly_crypt()
102 chacha_encrypt_bytes(&ctx->header_ctx, src, dest, aadlen); in chachapoly_crypt()
107 chacha_encrypt_bytes(&ctx->main_ctx, src + aadlen, in chachapoly_crypt()
H A Dutf8.c106 char *src; /* Source string returned from vasprintf. */ in vasnmprintf() local
118 src = NULL; in vasnmprintf()
119 if ((ret = vasprintf(&src, fmt, ap)) <= 0) in vasnmprintf()
122 sz = strlen(src) + 1; in vasnmprintf()
124 free(src); in vasnmprintf()
132 sp = src; in vasnmprintf()
209 free(src); in vasnmprintf()
231 *str = src; in vasnmprintf()
H A Dcipher-chachapoly-libcrypto.c87 const u_char *src, u_int len, u_int aadlen, u_int authlen, int do_encrypt) in chachapoly_crypt() argument
109 const u_char *tag = src + aadlen + len; in chachapoly_crypt()
111 poly1305_auth(expected_tag, src, aadlen + len, poly_key); in chachapoly_crypt()
121 EVP_Cipher(ctx->header_evp, dest, src, aadlen) < 0) { in chachapoly_crypt()
130 EVP_Cipher(ctx->main_evp, dest + aadlen, src + aadlen, len) < 0) { in chachapoly_crypt()
H A Dloginrec.h127 char *line_fullname(char *dst, const char *src, u_int dstsize);
128 char *line_stripname(char *dst, const char *src, int dstsize);
129 char *line_abbrevname(char *dst, const char *src, int dstsize);
H A Dcipher.c348 const u_char *src, u_int len, u_int aadlen, u_int authlen) in cipher_crypt() argument
351 return chachapoly_crypt(cc->cp_ctx, seqnr, dest, src, in cipher_crypt()
355 memcpy(dest, src, aadlen + len); in cipher_crypt()
361 memcpy(dest, src, aadlen); in cipher_crypt()
362 aesctr_encrypt_bytes(&cc->ac_ctx, src + aadlen, in cipher_crypt()
380 authlen, (u_char *)src + aadlen + len)) in cipher_crypt()
385 EVP_Cipher(cc->evp, NULL, (u_char *)src, aadlen) < 0) in cipher_crypt()
387 memcpy(dest, src, aadlen); in cipher_crypt()
391 if (EVP_Cipher(cc->evp, dest + aadlen, (u_char *)src + aadlen, in cipher_crypt()
H A Dloginrec.c569 if ((strncmp(src, "/dev/", 5) == 0) || (dstsize < (strlen(src) + 5))) in line_fullname()
570 strlcpy(dst, src, dstsize); in line_fullname()
573 strlcat(dst, src, dstsize); in line_fullname()
583 if (strncmp(src, "/dev/", 5) == 0) in line_stripname()
584 strlcpy(dst, src + 5, dstsize); in line_stripname()
586 strlcpy(dst, src, dstsize); in line_stripname()
607 src += 5; in line_abbrevname()
610 if (strncmp(src, "tty", 3) == 0) in line_abbrevname()
611 src += 3; in line_abbrevname()
614 len = strlen(src); in line_abbrevname()
[all …]
H A Dscp.c927 free(src); in toremote()
943 *src == '-' ? "-- " : "", src); in toremote()
983 addargs(&alist, "%s", src); in toremote()
1009 free(src); in toremote()
1025 free(src); in tolocal()
1054 cmd, *src == '-' ? "-- " : "", src); in tolocal()
1061 sink(1, argv + argc - 1, src); in tolocal()
1067 free(src); in tolocal()
1237 sink(int argc, char **argv, const char *src) argument
1276 if (src != NULL && !iamrecursive && !Tflag) {
[all …]
H A Dcipher-aes.c71 ssh_rijndael_cbc(EVP_CIPHER_CTX *ctx, u_char *dest, const u_char *src, in ssh_rijndael_cbc() argument
89 plain = (u_char *)src; in ssh_rijndael_cbc()
100 cnow = (u_char *) (src+len-RIJNDAEL_BLOCKSIZE); in ssh_rijndael_cbc()
H A Dcipher-ctr.c59 ssh_aes_ctr(EVP_CIPHER_CTX *ctx, u_char *dest, const u_char *src, in ssh_aes_ctr() argument
76 *(dest++) = *(src++) ^ buf[n]; in ssh_aes_ctr()
H A Dsftp-client.c1595 (dirattrib = do_stat(conn, src, 1)) == NULL) { in download_dir_internal()
1600 error("\"%s\" is not a directory", src); in download_dir_internal()
1604 mprintf("Retrieving %s\n", src); in download_dir_internal()
1619 if (do_readdir(conn, src, &dir_entries) == -1) { in download_dir_internal()
1630 new_src = path_append(src, filename); in download_dir_internal()
1932 if (stat(src, &sb) == -1) { in upload_dir_internal()
1934 src, strerror(errno)); in upload_dir_internal()
1938 error("\"%s\" is not a directory", src); in upload_dir_internal()
1942 mprintf("Entering %s\n", src); in upload_dir_internal()
1970 if ((dirp = opendir(src)) == NULL) { in upload_dir_internal()
[all …]
H A Dcipher-chachapoly.h34 u_char *dest, const u_char *src, u_int len, u_int aadlen, u_int authlen,
H A Ddefines.h873 # define va_copy(dest, src) __va_copy(dest, src) argument
875 # define va_copy(dest, src) (dest) = (src) argument
H A Dmisc.c904 urldecode(const char *src) in urldecode() argument
909 ret = xmalloc(strlen(src) + 1); in urldecode()
910 for (dst = ret; *src != '\0'; src++) { in urldecode()
911 switch (*src) { in urldecode()
916 if (!isxdigit((unsigned char)src[1]) || in urldecode()
917 !isxdigit((unsigned char)src[2]) || in urldecode()
918 (ch = hexchar(src + 1)) == -1) { in urldecode()
923 src += 2; in urldecode()
926 *dst++ = *src; in urldecode()
H A Dservconf.c2533 if (src->n != -1) \ in copy_set_server_options()
2534 dst->n = src->n; \ in copy_set_server_options()
2577 if (src->fwd_opts.streamlocal_bind_mask != (mode_t)-1) { in copy_set_server_options()
2579 src->fwd_opts.streamlocal_bind_mask; in copy_set_server_options()
2584 if (src->n != NULL && dst->n != src->n) { \ in copy_set_server_options()
2586 dst->n = src->n; \ in copy_set_server_options()
2591 if (src->num_s != 0) { \ in copy_set_server_options()
2595 dst->s = xcalloc(src->num_s, sizeof(*dst->s)); \ in copy_set_server_options()
2596 for (i = 0; i < src->num_s; i++) \ in copy_set_server_options()
2597 dst->s[i] = xstrdup(src->s[i]); \ in copy_set_server_options()
[all …]
/openssh-portable/.github/workflows/
H A Dupstream.yml25 run: vmrun "cd /usr/src && cvs up -dPA usr.bin/ssh regress/usr.bin/ssh"
27 run: vmrun "cd /usr/src/usr.bin/ssh && make obj && make clean && make"
29 run: vmrun "cd /usr/src/usr.bin/ssh && sudo make install"
31 run: vmrun "cd /usr/src/regress/usr.bin/ssh && make obj && make clean && SUDO=sudo make"

12