Searched refs:buf_len (Results 1 - 25 of 110) sorted by relevance

12345

/macosx-10.10/ncurses-44/ncurses/ncurses/tinfo/
H A Dsetbuf.c106 unsigned buf_len; local
117 buf_len = min(LINES * (COLS + 6), 2800);
119 if ((buf_ptr = typeMalloc(char, buf_len)) == NULL)
132 buf_len = 0;
139 (void) setvbuf(ofp, buf_ptr, buf_len, buf_len ? _IOFBF : _IOLBF);
141 (void) setvbuf(ofp, buf_ptr, buf_len ? _IOFBF : _IOLBF, buf_len);
144 (void) setbuffer(ofp, buf_ptr, (int) buf_len);
/macosx-10.10/OpenSSL098-52/src/crypto/ec/
H A Dec_print.c65 size_t buf_len=0; local
68 buf_len = EC_POINT_point2oct(group, point, form,
70 if (buf_len == 0)
73 if ((buf = OPENSSL_malloc(buf_len)) == NULL)
76 if (!EC_POINT_point2oct(group, point, form, buf, buf_len, ctx))
82 ret = BN_bin2bn(buf, buf_len, ret);
94 size_t buf_len=0; local
98 if ((buf_len = BN_num_bytes(bn)) == 0) return NULL;
99 buf = OPENSSL_malloc(buf_len);
120 if (!EC_POINT_oct2point(group, ret, buf, buf_len, ct
141 size_t buf_len=0,i; local
[all...]
/macosx-10.10/OpenSSL098-52/src/crypto/evp/
H A Dbio_b64.c82 int buf_len; member in struct:b64_struct
119 ctx->buf_len=0;
160 ctx->buf_len=0;
167 if (ctx->buf_len > 0)
169 OPENSSL_assert(ctx->buf_len >= ctx->buf_off);
170 i=ctx->buf_len-ctx->buf_off;
178 if (ctx->buf_len == ctx->buf_off)
180 ctx->buf_len=0;
331 ctx->buf_len=0;
334 ctx->buf_len
[all...]
H A Dbio_ok.c147 size_t buf_len; member in struct:ok_struct
184 ctx->buf_len=0;
229 i=ctx->buf_len-ctx->buf_off;
238 if (ctx->buf_len == ctx->buf_off)
245 ctx->buf_len= ctx->buf_len_save- ctx->buf_off_save;
247 ctx->buf_len);
251 ctx->buf_len=0;
261 n=IOBS- ctx->buf_len;
262 i=BIO_read(b->next_bio,&(ctx->buf[ctx->buf_len]),n);
266 ctx->buf_len
[all...]
H A Dbio_enc.c78 int buf_len; member in struct:enc_struct
116 ctx->buf_len=0;
154 if (ctx->buf_len > 0)
156 i=ctx->buf_len-ctx->buf_off;
163 if (ctx->buf_len == ctx->buf_off)
165 ctx->buf_len=0;
189 &(ctx->buf_len));
202 (unsigned char *)ctx->buf,&ctx->buf_len,
211 if(ctx->buf_len == 0) continue;
214 if (ctx->buf_len <
[all...]
H A Devp_enc.c152 if(ctx->buf_len == 0 && (inl&(ctx->block_mask)) == 0)
165 i=ctx->buf_len;
173 ctx->buf_len+=inl;
200 ctx->buf_len=i;
223 bl=ctx->buf_len;
280 if (b > 1 && !ctx->buf_len)
311 if(ctx->buf_len)
321 if (ctx->buf_len || !ctx->final_used)
/macosx-10.10/bootp-298/bootplib/
H A Dbsdplib.c172 bsdp_parse_class_id(void * buf, int buf_len, char * arch, argument
182 if (buf_len < len || memcmp(buf, BSDP_VENDOR_CLASS_ID, len))
185 buf_len -= len;
187 if (buf_len == 0)
193 for (scan++, buf_len--; buf_len && *scan != '/'; scan++, buf_len--) {
207 for (scan++, buf_len--; buf_len; scan++, buf_len
[all...]
H A Dhost_identifier.h53 char * buf, int buf_len);
/macosx-10.10/ruby-106/ruby/ext/openssl/
H A Dossl_hmac.c112 hmac_final(HMAC_CTX *ctx, unsigned char **buf, unsigned int *buf_len) argument
122 HMAC_Final(&final, *buf, buf_len);
136 unsigned int buf_len; local
140 hmac_final(ctx, &buf, &buf_len);
141 digest = ossl_buf2str((char *)buf, buf_len);
157 unsigned int buf_len; local
161 hmac_final(ctx, &buf, &buf_len);
162 if (string2hex(buf, buf_len, &hexbuf, NULL) != 2 * (int)buf_len) {
167 hexdigest = ossl_buf2str(hexbuf, 2 * buf_len);
197 unsigned int buf_len; local
217 unsigned int buf_len; local
[all...]
H A Dossl_pkey_rsa.c388 int buf_len, pad; local
396 buf_len = RSA_public_encrypt(RSTRING_LENINT(buffer), (unsigned char *)RSTRING_PTR(buffer),
399 if (buf_len < 0) ossl_raise(eRSAError, NULL);
400 rb_str_set_len(str, buf_len);
417 int buf_len, pad; local
425 buf_len = RSA_public_decrypt(RSTRING_LENINT(buffer), (unsigned char *)RSTRING_PTR(buffer),
428 if (buf_len < 0) ossl_raise(eRSAError, NULL);
429 rb_str_set_len(str, buf_len);
446 int buf_len, pad; local
457 buf_len
478 int buf_len, pad; local
[all...]
/macosx-10.10/Heimdal-398.1.2/kadmin/
H A Dget.c124 format_keytype(krb5_key_data *k, krb5_salt *def_salt, char *buf, size_t buf_len) argument
134 strlcpy(buf, s, buf_len);
137 strlcat(buf, "(", buf_len);
145 strlcat(buf, s, buf_len);
155 strlcat(buf, s, buf_len);
158 strlcat(buf, ")", buf_len);
160 strlcat(buf, s, buf_len);
166 unsigned int subfield, char *buf, size_t buf_len, int condensed)
171 krb5_unparse_name_fixed_short(context, princ->principal, buf, buf_len);
173 krb5_unparse_name_fixed(context, princ->principal, buf, buf_len);
165 format_field(kadm5_principal_ent_t princ, unsigned int field, unsigned int subfield, char *buf, size_t buf_len, int condensed) argument
[all...]
/macosx-10.10/OpenSSL098-52/src/crypto/asn1/
H A Dt_pkey.c113 size_t buf_len=0, i; local
116 buf_len = (size_t)BN_num_bytes(x->n);
118 if (buf_len < (i = (size_t)BN_num_bytes(x->e)))
119 buf_len = i;
121 if (buf_len < (i = (size_t)BN_num_bytes(x->d)))
122 buf_len = i;
124 if (buf_len < (i = (size_t)BN_num_bytes(x->p)))
125 buf_len = i;
127 if (buf_len < (i = (size_t)BN_num_bytes(x->q)))
128 buf_len
207 size_t buf_len=0,i; local
291 size_t buf_len=0, i; local
492 size_t buf_len=0, i; local
679 size_t buf_len=0, i; local
742 size_t buf_len=0,i; local
[all...]
/macosx-10.10/OpenSSL098-52/src/crypto/pkcs7/
H A Dbio_ber.c104 int buf_len; member in struct:bio_ber_struct
174 n=ctx->buf_len-j;
180 ctx->buf_len-j;
185 i=BER_BUF_SIZE-ctx->buf_len;
188 i=BIO_read(bio->next_bio,&(ctx->buf[ctx->buf_len]),i);
195 ctx->buf_len+=i;
198 max=ctx->buf_len;
204 if ((ctx->buf_len < BER_BUF_SIZE) &&
282 n=ctx->buf_len-ctx->buf_off;
303 (unsigned char *)ctx->buf,&ctx->buf_len,
[all...]
/macosx-10.10/OpenSSL098-52/src/apps/
H A Decparam.c479 size_t buf_len = 0, tmp_len = 0; local
525 if ((tmp_len = (size_t)BN_num_bytes(ec_p)) > buf_len)
526 buf_len = tmp_len;
527 if ((tmp_len = (size_t)BN_num_bytes(ec_a)) > buf_len)
528 buf_len = tmp_len;
529 if ((tmp_len = (size_t)BN_num_bytes(ec_b)) > buf_len)
530 buf_len = tmp_len;
531 if ((tmp_len = (size_t)BN_num_bytes(ec_gen)) > buf_len)
532 buf_len = tmp_len;
533 if ((tmp_len = (size_t)BN_num_bytes(ec_order)) > buf_len)
[all...]
/macosx-10.10/eap8021x-198/EAP8021X.fproj/
H A DLinkAddresses.c142 size_t buf_len = 0; local
157 if (sysctl(mib, 6, NULL, &buf_len, NULL, 0) < 0) {
161 buf = malloc(buf_len);
162 if (sysctl(mib, 6, buf, &buf_len, NULL, 0) < 0) {
171 while (offset < buf_len) {
/macosx-10.10/OpenSSL098-52/src/crypto/objects/
H A Dobj_dat.c439 int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name) argument
462 BUF_strlcpy(buf,s,buf_len);
530 if (buf && (buf_len > 0))
533 buf_len--;
547 if (buf_len > 0)
550 buf_len--;
552 BUF_strlcpy(buf,bndec,buf_len);
553 if (i > buf_len)
555 buf += buf_len;
556 buf_len
[all...]
/macosx-10.10/bootp-298/bootpd.tproj/
H A DAFPUsers.h52 char * AFPUser_get_user(AFPUserRef user, char *buf, size_t buf_len);
/macosx-10.10/xnu-2782.1.97/osfmk/kern/
H A Dmachine.h105 vm_size_t buf_len);
/macosx-10.10/OpenSSL098-52/src/crypto/
H A Dmem_dbg.c649 int buf_len; local
657 buf_len=strlen(buf);
659 if (128 - buf_len - 3 < info_len)
661 memcpy(buf + buf_len, amip->info, 128 - buf_len - 3);
662 buf_len = 128 - 3;
666 BUF_strlcpy(buf + buf_len, amip->info,
667 sizeof buf - buf_len);
668 buf_len = strlen(buf);
670 BIO_snprintf(buf + buf_len, sizeo
[all...]
/macosx-10.10/OpenSSH-189/openssh/
H A Dssh-pkcs11-helper.c210 u_int buf_len; local
215 buf_len = buffer_len(&iqueue);
216 if (buf_len < 5)
224 if (buf_len < msg_len + 4)
227 buf_len -= 4;
247 if (buf_len < buffer_len(&iqueue)) {
251 consumed = buf_len - buffer_len(&iqueue);
/macosx-10.10/zlib-55/zlib/
H A Dminigzip.c208 off_t buf_len; /* length of the input file */ local
213 buf_len = sb.st_size;
214 if (buf_len <= 0) return Z_ERRNO;
217 buf = mmap((caddr_t) 0, buf_len, PROT_READ, MAP_SHARED, ifd, (off_t)0);
221 len = gzwrite(out, (char *)buf, (unsigned)buf_len);
223 if (len != (int)buf_len) error(gzerror(out, &err));
225 munmap(buf, buf_len);
/macosx-10.10/Heimdal-398.1.2/lib/hcrypto/
H A Devp.c779 ctx->buf_len = 0;
863 if (ctx->buf_len == 0 && (inlen & ctx->block_mask) == 0) {
874 left = blocksize - ctx->buf_len;
877 if (ctx->buf_len) {
881 memcpy(ctx->buf + ctx->buf_len, in, inlen);
882 ctx->buf_len += inlen;
887 memcpy(ctx->buf + ctx->buf_len, in, left);
897 ctx->buf_len = 0;
901 ctx->buf_len = (inlen & ctx->block_mask);
911 memcpy(ctx->buf, in, ctx->buf_len);
[all...]
/macosx-10.10/Heimdal-398.1.2/lib/roken/
H A Dparse_reply-test.c123 size_t buf_len; member in struct:testcase
153 tests[0].buf_len = basic_len;
155 tests[1].buf_len = dns_srv__kerberos__udp_SU_SE__len;
157 tests[2].buf_len = dns_srv__kerberos__udp_KTH_SE__len;
159 tests[3].buf_len = dns_srv__kerberos__udp_ATHENA_MIT_EDU__len;
184 buf = p2 - t->buf_len;
188 memcpy (buf, t->buf, t->buf_len);
190 buf[n % t->buf_len] = arc4random();
192 reply = rk_dns_parse_reply (buf, t->buf_len);
/macosx-10.10/postfix-255/postfix/src/dns/
H A Ddns_lookup.c205 size_t buf_len; /* reply buffer length */ member in struct:DNS_REPLY
232 reply->buf_len = DEF_DNS_REPLY_SIZE;
276 len = res_search((char *) name, C_IN, type, reply->buf, reply->buf_len);
302 if (reply_header->tc == 0 || reply->buf_len >= MAX_DNS_REPLY_SIZE)
305 myrealloc((char *) reply->buf, 2 * reply->buf_len);
306 reply->buf_len *= 2;
312 if (len > reply->buf_len) {
314 len, (int) reply->buf_len, name, dns_strtype(type));
315 len = reply->buf_len;
/macosx-10.10/smb-759.0/kernel/smbfs/
H A Dsmbfs_security.c125 size_t buf_len = MAXPATHLEN * 2; local
127 SMB_MALLOC(buffer, char *, buf_len, M_TEMP, M_WAITOK | M_ZERO);
142 bzero(buffer, buf_len);
144 strlcat(buffer, "defer_inherit ", buf_len);
147 strlcat(buffer, "no_inherit ", buf_len);
159 strlcat(buffer, "inherited ", buf_len);
162 strlcat(buffer, "file_inherit ", buf_len);
165 strlcat(buffer, "dir_inherit ", buf_len);
168 strlcat(buffer, "limit_inherit ", buf_len);
171 strlcat(buffer, "only_inherit ", buf_len);
[all...]

Completed in 184 milliseconds

12345