/freebsd-9.3-release/crypto/openssl/crypto/asn1/ |
H A D | a_mbstr.c | 65 static int traverse_string(const unsigned char *p, int len, int inform, 86 int ASN1_mbstring_copy(ASN1_STRING **out, const unsigned char *in, int len, argument 89 return ASN1_mbstring_ncopy(out, in, len, inform, mask, 0, 0); 92 int ASN1_mbstring_ncopy(ASN1_STRING **out, const unsigned char *in, int len, argument 105 if (len == -1) 106 len = strlen((const char *)in); 114 if (len & 1) { 119 nchar = len >> 1; 123 if (len & 3) { 128 nchar = len >> 258 traverse_string(const unsigned char *p, int len, int inform, int (*rfunc) (unsigned long value, void *in), void *arg) argument [all...] |
H A D | tasn_dec.c | 68 static int asn1_check_eoc(const unsigned char **in, long len); 69 static int asn1_find_end(const unsigned char **in, long len, char inf); 71 static int asn1_collect(BUF_MEM *buf, const unsigned char **in, long len, 78 const unsigned char **in, long len, 82 const unsigned char **in, long len, 86 const unsigned char **in, long len, 90 const unsigned char **in, long len, 136 const unsigned char **in, long len, 144 if (ASN1_item_ex_d2i(pval, in, len, it, -1, 0, 0, &c) > 0) 150 const unsigned char **in, long len, 135 ASN1_item_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it) argument 149 ASN1_template_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_TEMPLATE *tt) argument 163 ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) argument 525 long len; local 590 asn1_template_noexp_d2i(ASN1_VALUE **val, const unsigned char **in, long len, const ASN1_TEMPLATE *tt, char opt, ASN1_TLC *ctx) argument 720 long len; local 845 asn1_ex_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_cont, const ASN1_ITEM *it) argument 989 asn1_find_end(const unsigned char **in, long len, char inf) argument 1051 asn1_collect(BUF_MEM *buf, const unsigned char **in, long len, char inf, int tag, int aclass, int depth) argument 1110 int len; local 1125 asn1_check_eoc(const unsigned char **in, long len) argument 1145 asn1_check_tlen(long *olen, int *otag, unsigned char *oclass, char *inf, char *cst, const unsigned char **in, long len, int exptag, int expclass, char opt, ASN1_TLC *ctx) argument [all...] |
/freebsd-9.3-release/contrib/binutils/bfd/ |
H A D | elf-strtab.c | 35 int len; member in struct:elf_strtab_hash_entry 40 /* Entry this is a suffix of (if len < 0). */ 85 ret->len = 0; 159 if (entry->len == 0) 161 entry->len = strlen (str) + 1; 163 BFD_ASSERT (entry->len > 0); 241 register unsigned int len; local 244 len = tab->array[i]->len; 245 if ((int) len < [all...] |
/freebsd-9.3-release/contrib/gdb/gdb/ |
H A D | scm-exp.c | 43 scm_istr2int (char *str, int len, int radix) argument 50 if (0 >= len) 57 if (++i == len) 101 while (i < len); 108 scm_istring2number (char *str, int len, int radix) argument 116 if (len == 1) 120 while ((len - i) >= 2 && str[i] == '#' && ++i) 166 return scm_istr2int (&str[i], len - i, radix); 168 return scm_istr2int (&str[i], len - i, radix); 174 return scm_istr2flo (&str[i], len [all...] |
/freebsd-9.3-release/contrib/nvi/ex/ |
H A D | ex_at.c | 46 size_t len; local 107 for (len = 0, tp = cbp->textq.cqh_last; 109 len += tp->len + 1; 111 MALLOC_RET(sp, ecp->cp, char *, len * 2); 113 ecp->o_clen = len; 114 ecp->cp[len] = '\0'; 117 for (p = ecp->cp + len, tp = cbp->textq.cqh_last; 119 memcpy(p, tp->lb, tp->len); 120 p += tp->len; [all...] |
/freebsd-9.3-release/contrib/wpa/src/eap_common/ |
H A D | eap_pax_common.c | 30 * @output_len: Output len in bytes (W) 44 size_t len[3]; local 56 len[0] = os_strlen(identifier); 58 len[1] = entropy_len; 60 len[2] = 1; 66 hmac_sha1_vector(key, key_len, 3, addr, len, mac); 100 size_t len[3]; local 108 len[0] = data1_len; 110 len[1] = data2_len; 112 len[ [all...] |
/freebsd-9.3-release/contrib/wpa/src/utils/ |
H A D | wpabuf.h | 33 struct wpabuf * wpabuf_alloc(size_t len); 34 struct wpabuf * wpabuf_alloc_ext_data(u8 *data, size_t len); 35 struct wpabuf * wpabuf_alloc_copy(const void *data, size_t len); 38 void * wpabuf_put(struct wpabuf *buf, size_t len); 40 struct wpabuf * wpabuf_zeropad(struct wpabuf *buf, size_t len); 139 size_t len) 142 os_memcpy(wpabuf_put(buf, len), data, len); local 151 static inline void wpabuf_set(struct wpabuf *buf, const void *data, size_t len) argument 154 buf->size = buf->used = len; 138 wpabuf_put_data(struct wpabuf *buf, const void *data, size_t len) argument [all...] |
/freebsd-9.3-release/crypto/openssh/openbsd-compat/ |
H A D | setproctitle.c | 128 size_t len; local 145 len = strlcat(buf, ": ", sizeof(buf)); 146 if (len < sizeof(buf)) 147 r = vsnprintf(buf + len, sizeof(buf) - len , fmt, ap); 150 if (r == -1 || (size_t)r >= sizeof(buf) - len) 159 /* debug("setproctitle: copy \"%s\" into len %d", 161 len = strlcpy(argv_start, ptitle, argv_env_len); 162 for(; len < argv_env_len; len [all...] |
/freebsd-9.3-release/lib/libc/iconv/ |
H A D | citrus_memstream.c | 74 size_t keylen, len; local 78 p = _citrus_memory_stream_getln(ms, &len); 83 q = memchr(p, T_COMM, len); 85 len = q - p; 88 _bcs_trunc_rws_len(p, &len); 89 if (len == 0) 93 p = _bcs_skip_ws_len(p, &len); 94 q = _bcs_skip_nonws_len(p, &len); 107 p = _bcs_skip_ws_len(q, &len); 108 *rlen = len; [all...] |
/freebsd-9.3-release/lib/libc/xdr/ |
H A D | xdr_stdio.c | 137 xdrstdio_getbytes(xdrs, addr, len) 140 u_int len; 143 if ((len != 0) && (fread(addr, (size_t)len, 1, (FILE *)xdrs->x_private) != 1)) 149 xdrstdio_putbytes(xdrs, addr, len) 152 u_int len; 155 if ((len != 0) && (fwrite(addr, (size_t)len, 1, 181 xdrstdio_inline(xdrs, len) 183 u_int len; [all...] |
/freebsd-9.3-release/lib/libpam/modules/pam_echo/ |
H A D | pam_echo.c | 54 size_t len; local 58 for (i = 0, len = 0; i < argc && len < sizeof(msg) - 1; ++i) { 60 msg[len++] = ' '; 61 for (p = argv[i]; *p != '\0' && len < sizeof(msg) - 1; ++p) { 63 msg[len++] = *p; 88 msg[len++] = *p; 98 for (q = str; *q != '\0' && len < sizeof(msg) - 1; ++q) 99 msg[len++] = *q; 102 msg[len] [all...] |
/freebsd-9.3-release/sys/fs/coda/ |
H A D | coda_venus.h | 53 struct proc *p, /*out*/ char **str, int *len); 55 int venus_lookup(void *mdp, struct CodaFid *fid, const char *nm, int len, 58 int venus_create(void *mdp, struct CodaFid *fid, const char *nm, int len, 62 int venus_remove(void *mdp, struct CodaFid *fid, const char *nm, int len, 65 const char *nm, int len, struct ucred *cred, struct proc *p); 67 const char *nm, int len, const char *tnm, int tlen, 69 int venus_mkdir(void *mdp, struct CodaFid *fid, const char *nm, int len, 72 int venus_rmdir(void *mdp, struct CodaFid *fid, const char *nm, int len, 75 int llen, const char *nm, int len, struct vattr *va, 79 int *len); [all...] |
/freebsd-9.3-release/usr.bin/make/ |
H A D | buf.c | 87 size_t len = Buf_Size(bp); local 90 if (bp->size < len + nb + 1) { 94 bp->end = bp->buf + len; 116 Buf_AddBytes(Buffer *bp, size_t len, const Byte *bytes) argument 119 BufExpand(bp, len); 121 memcpy(bp->end, bytes, len); 122 bp->end += len; 129 * len: 136 Buf_GetAll(Buffer *bp, size_t *len) argument 139 if (len ! [all...] |
/freebsd-9.3-release/crypto/openssl/crypto/camellia/ |
H A D | cmll_cbc.c | 70 unsigned long len = length; local 88 while (len >= CAMELLIA_BLOCK_SIZE) { 96 len -= CAMELLIA_BLOCK_SIZE; 100 if (len) { 101 for (n = 0; n < len; ++n) 103 for (n = len; n < CAMELLIA_BLOCK_SIZE; ++n) 114 while (len >= CAMELLIA_BLOCK_SIZE) { 123 len -= CAMELLIA_BLOCK_SIZE; 127 if (len) { 134 for (n = 0; n < len; [all...] |
/freebsd-9.3-release/contrib/tcpdump/ |
H A D | print-ip6opts.c | 74 ip6_sopt_print(const u_char *bp, int len) argument 79 for (i = 0; i < len; i += optlen) { 83 if (i + 1 < len) 88 if (i + optlen > len) 96 if (len - i < IP6OPT_MINLEN) { 103 if (len - i < IP6SOPT_UI_MINLEN) { 110 if (len - i < IP6SOPT_ALTCOA_MINLEN) { 117 if (len - i < IP6SOPT_AUTH_MINLEN) { 124 if (len - i < IP6OPT_MINLEN) { 128 printf(", sopt_type 0x%02x: len 139 ip6_opt_print(const u_char *bp, int len) argument [all...] |
/freebsd-9.3-release/games/random/ |
H A D | randomize_fd.c | 55 n->len = 0; 103 ssize_t len; local 120 len = read(fd, buf, buflen); 121 if (len == -1) 123 else if (len == 0) { 126 } else if ((size_t)len < buflen) 127 buflen = (size_t)len; 129 bufleft = (int)len; 140 len = read(fd, &buf[i], buflen - i); 141 if (len [all...] |
/freebsd-9.3-release/sys/netsmb/ |
H A D | smb_subr.c | 96 size_t len; local 98 len = s ? strlen(s) + 1 : 1; 99 p = malloc(len, M_SMBSTR, M_WAITOK); 101 bcopy(s, p, len); 115 size_t len; local 117 len = 0; 121 len++; 122 if (maxlen && len > maxlen) 127 p = malloc(len, M_SMBSTR, M_WAITOK); 128 error = copyin(s, p, len); 140 smb_memdupin(void *umem, size_t len) argument 157 smb_memdup(const void *umem, int len) argument 202 size_t len; local [all...] |
/freebsd-9.3-release/contrib/amd/libamu/ |
H A D | strutil.c | 56 strnsave(const char *str, int len) argument 58 char *sp = (char *) xmalloc(len + 1); 59 memmove(sp, str, len); 60 sp[len] = '\0'; 165 _xstrlcpy(const char *filename, int lineno, char *dst, const char *src, size_t len) argument 167 xstrlcpy(char *dst, const char *src, size_t len) 170 if (len == 0) 172 if (strlcpy(dst, src, len) >= len) 192 _xstrlcat(const char *filename, int lineno, char *dst, const char *src, size_t len) argument [all...] |
/freebsd-9.3-release/contrib/gdb/gdb/mi/ |
H A D | mi-parse.c | 54 int len; local 58 len = 0; 73 len++; 88 arg = xmalloc ((len + 1) * sizeof (char)); 91 len = 0; 97 arg[len] = parse_escape (&chp); 100 arg[len] = *chp++; 101 len++; 103 arg[len] = '\0'; 111 int len; local [all...] |
/freebsd-9.3-release/contrib/nvi/common/ |
H A D | delete.c | 41 size_t blen, len, nlen, tlen; local 67 if (db_get(sp, lno, DBG_FATAL, &p, &len)) 69 eof = tm->cno >= len ? 1 : 0; 81 if (db_get(sp, fm->lno, DBG_FATAL, &p, &len)) 93 if (db_get(sp, fm->lno, DBG_FATAL, &p, &len)) 95 GET_SPACE_RET(sp, bp, blen, len); 98 memcpy(bp + fm->cno, p + (tm->cno + 1), len - (tm->cno + 1)); 100 bp, len - ((tm->cno - fm->cno) + 1))) 118 if (db_get(sp, tm->lno, DBG_FATAL, &p, &len)) 120 if (len ! [all...] |
/freebsd-9.3-release/contrib/wpa/src/crypto/ |
H A D | crypto.h | 34 * @len: Lengths of the data blocks 38 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac); 44 * @len: Lengths of the data blocks 48 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac); 55 * @len: Lengths of the data blocks 60 const size_t *len, u8 *mac); 70 * @len: Lengths of the data blocks 74 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, 96 * @len: Lengths of the data blocks 100 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, [all...] |
H A D | crypto_libtomcrypt.c | 31 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument 38 md4_process(&md, addr[i], len[i]); 65 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument 72 md5_process(&md, addr[i], len[i]); 78 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument 85 sha1_process(&md, addr[i], len[i]); 91 void * aes_encrypt_init(const u8 *key, size_t len) argument 97 if (aes_setup(key, len, 0, skey) != CRYPT_OK) { 120 void * aes_decrypt_init(const u8 *key, size_t len) argument 126 if (aes_setup(key, len, 200 crypto_hash_update(struct crypto_hash *ctx, const u8 *data, size_t len) argument 220 crypto_hash_finish(struct crypto_hash *ctx, u8 *mac, size_t *len) argument 356 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) argument 380 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument 422 crypto_public_key_import(const u8 *key, size_t len) argument 452 crypto_private_key_import(const u8 *key, size_t len, const char *passwd) argument 484 crypto_public_key_from_cert(const u8 *buf, size_t len) argument 559 unsigned long len, modlen; local 622 unsigned long len; local [all...] |
/freebsd-9.3-release/sbin/iscontrol/ |
H A D | pdu.c | 114 u_int len; local 119 len = vasprintf(&str, fmt, ap) + 1; 120 if((pp->ds_len + len) > 0xffffff) { 126 if((pp->ds_len + len) > pp->ds_size) { 129 np = realloc(pp->ds_addr, pp->ds_size + len + FUDGE); 136 pp->ds_size += len + FUDGE; 138 memcpy(pp->ds_addr + pp->ds_len, str, len); 139 pp->ds_len += len; 141 return len; 163 size_t len, local [all...] |
/freebsd-9.3-release/sys/dev/cardbus/ |
H A D | cardbus_device.c | 68 int len, uint8_t *tupledata, uint32_t start, uint32_t *off, 79 if (cis->len + 1 > sizeof(cis->buffer)) { 80 cis->len = 0; 83 cis->buffer[cis->len++] = id; 86 if (cis->len + 2 + len > sizeof(cis->buffer)) { 87 cis->len = 0; 90 cis->buffer[cis->len++] = id; 91 cis->buffer[cis->len++] = len; 67 cardbus_build_cis(device_t cbdev, device_t child, int id, int len, uint8_t *tupledata, uint32_t start, uint32_t *off, struct tuple_callbacks *info, void *argp) argument [all...] |
/freebsd-9.3-release/crypto/openssl/fips/aes/ |
H A D | fips_aesavs.c | 98 int len) 201 EVP_Cipher(ctx, ciphertext, plaintext, len); 203 EVP_Cipher(ctx, plaintext, ciphertext, len); 230 int dir, unsigned char *text, int len, FILE *rfp) 243 if (len > 32) { 259 memcpy(ptext[0], text, len); 261 memcpy(ctext[0], text, len); 270 OutputValue(t_tag[dir ^ 1], dir ? ptext[0] : ctext[0], len, rfp, 279 dir, ptext[j], ctext[j], len); 281 memcpy(ptext[j + 1], ctext[j], len); 92 AESTest(EVP_CIPHER_CTX *ctx, char *amode, int akeysz, unsigned char *aKey, unsigned char *iVec, int dir, unsigned char *plaintext, unsigned char *ciphertext, int len) argument 228 do_mct(char *amode, int akeysz, unsigned char *aKey, unsigned char *iVec, int dir, unsigned char *text, int len, FILE *rfp) argument 494 int ilen, len, ret = 0; local [all...] |