Searched refs:RSTRING_PTR (Results 1 - 25 of 116) sorted by relevance

12345

/macosx-10.10.1/ruby-106/ruby/ext/-test-/fatal/
H A Drb_fatal.c10 cmsg = RSTRING_PTR(msg);
/macosx-10.10.1/ruby-106/ruby/ext/-test-/string/
H A Denc_str_buf_cat.c7 return rb_enc_str_buf_cat(str, RSTRING_PTR(str2), RSTRING_LEN(str2), rb_enc_get(str2));
H A Dcstr.c10 RSTRING_PTR(str)[len] = 'x';
/macosx-10.10.1/ruby-106/ruby/ext/openssl/
H A Dossl_pkcs5.c39 if (PKCS5_PBKDF2_HMAC(RSTRING_PTR(pass), RSTRING_LENINT(pass),
40 (unsigned char *)RSTRING_PTR(salt), RSTRING_LENINT(salt),
42 (unsigned char *)RSTRING_PTR(str)) != 1)
78 if (PKCS5_PBKDF2_HMAC_SHA1(RSTRING_PTR(pass), RSTRING_LENINT(pass),
79 (const unsigned char *)RSTRING_PTR(salt), RSTRING_LENINT(salt), NUM2INT(iter),
80 len, (unsigned char *)RSTRING_PTR(str)) != 1)
H A Dossl_rand.c40 RAND_seed(RSTRING_PTR(str), RSTRING_LENINT(str));
54 RAND_add(RSTRING_PTR(str), RSTRING_LENINT(str), NUM2DBL(entropy));
69 if(!RAND_load_file(RSTRING_PTR(filename), -1)) {
84 if (RAND_write_file(RSTRING_PTR(filename)) == -1) {
102 if (!RAND_bytes((unsigned char *)RSTRING_PTR(str), n)) {
121 if (!RAND_pseudo_bytes((unsigned char *)RSTRING_PTR(str), n)) {
138 if(!RAND_egd(RSTRING_PTR(filename))) {
156 if (!RAND_egd_bytes(RSTRING_PTR(filename), n)) {
H A Dossl_hmac.c73 HMAC_Init(ctx, RSTRING_PTR(key), RSTRING_LENINT(key),
106 HMAC_Update(ctx, (unsigned char *)RSTRING_PTR(data), RSTRING_LEN(data));
201 buf = HMAC(GetDigestPtr(digest), RSTRING_PTR(key), RSTRING_LENINT(key),
202 (unsigned char *)RSTRING_PTR(data), RSTRING_LEN(data), NULL, &buf_len);
223 buf = HMAC(GetDigestPtr(digest), RSTRING_PTR(key), RSTRING_LENINT(key),
224 (unsigned char *)RSTRING_PTR(data), RSTRING_LEN(data), NULL, &buf_len);
H A Dossl_x509ext.c233 nid = OBJ_ln2nid(RSTRING_PTR(oid));
234 if(!nid) nid = OBJ_sn2nid(RSTRING_PTR(oid));
235 if(!nid) ossl_raise(eX509ExtError, "unknown OID `%s'", RSTRING_PTR(oid));
242 ext = X509V3_EXT_nconf_nid(conf, ctx, nid, RSTRING_PTR(valstr));
245 ext = X509V3_EXT_conf_nid(empty_lhash, ctx, nid, RSTRING_PTR(valstr));
249 RSTRING_PTR(oid), RSTRING_PTR(value));
296 p = (unsigned char *)RSTRING_PTR(oid);
338 memcpy(s, RSTRING_PTR(data), RSTRING_LEN(data));
427 p = (unsigned char *)RSTRING_PTR(st
[all...]
H A Dossl_pkey.c112 if (!(fp = fopen(RSTRING_PTR(filename), "r"))) {
285 EVP_SignUpdate(&ctx, RSTRING_PTR(data), RSTRING_LEN(data));
287 if (!EVP_SignFinal(&ctx, (unsigned char *)RSTRING_PTR(str), &buf_len, pkey))
327 EVP_VerifyUpdate(&ctx, RSTRING_PTR(data), RSTRING_LEN(data));
328 result = EVP_VerifyFinal(&ctx, (unsigned char *)RSTRING_PTR(sig), RSTRING_LENINT(sig), pkey);
H A Dossl_x509attr.c102 p = (unsigned char *)RSTRING_PTR(oid);
216 p = (unsigned char *)RSTRING_PTR(str);
225 p = (unsigned char *)RSTRING_PTR(str);
251 p = (unsigned char *)RSTRING_PTR(str);
254 rb_str_set_len(str, p - (unsigned char*)RSTRING_PTR(str));
H A Dossl_cipher.c227 memcpy(iv, RSTRING_PTR(init_v), RSTRING_LEN(init_v));
229 else memcpy(iv, RSTRING_PTR(init_v), sizeof(iv));
232 (unsigned char *)RSTRING_PTR(pass), RSTRING_LENINT(pass), 1, key, NULL);
317 salt = (unsigned char *)RSTRING_PTR(vsalt);
323 (unsigned char *)RSTRING_PTR(vpass), RSTRING_LENINT(vpass), iter, key, iv);
356 in = (unsigned char *)RSTRING_PTR(data);
369 if (!EVP_CipherUpdate(ctx, (unsigned char *)RSTRING_PTR(str), &out_len, in, in_len))
400 if (!EVP_CipherFinal_ex(ctx, (unsigned char *)RSTRING_PTR(str), &out_len))
447 if (EVP_CipherInit_ex(ctx, NULL, NULL, (unsigned char *)RSTRING_PTR(key), NULL, -1) != 1)
479 if (EVP_CipherInit_ex(ctx, NULL, NULL, NULL, (unsigned char *)RSTRING_PTR(i
[all...]
H A Dossl_bio.c43 bio = BIO_new_mem_buf(RSTRING_PTR(obj), RSTRING_LENINT(obj));
H A Dossl_ns_spki.c72 if (!(spki = NETSCAPE_SPKI_b64_decode(RSTRING_PTR(buffer), -1))) {
73 p = (unsigned char *)RSTRING_PTR(buffer);
103 p = (unsigned char *)RSTRING_PTR(str);
246 if (!ASN1_STRING_set(spki->spkac->challenge, RSTRING_PTR(str),
H A Dossl_pkey_rsa.c320 passwd = RSTRING_PTR(pass);
366 p = (unsigned char *)RSTRING_PTR(str);
396 buf_len = RSA_public_encrypt(RSTRING_LENINT(buffer), (unsigned char *)RSTRING_PTR(buffer),
397 (unsigned char *)RSTRING_PTR(str), pkey->pkey.rsa,
425 buf_len = RSA_public_decrypt(RSTRING_LENINT(buffer), (unsigned char *)RSTRING_PTR(buffer),
426 (unsigned char *)RSTRING_PTR(str), pkey->pkey.rsa,
457 buf_len = RSA_private_encrypt(RSTRING_LENINT(buffer), (unsigned char *)RSTRING_PTR(buffer),
458 (unsigned char *)RSTRING_PTR(str), pkey->pkey.rsa,
489 buf_len = RSA_private_decrypt(RSTRING_LENINT(buffer), (unsigned char *)RSTRING_PTR(buffer),
490 (unsigned char *)RSTRING_PTR(st
[all...]
/macosx-10.10.1/swig-12/Lib/ruby/
H A Dprogargcargv.i25 strcpy($1[i], RSTRING_PTR(v));
/macosx-10.10.1/ruby-106/ruby/ext/digest/bubblebabble/
H A Dbubblebabble.c36 digest = RSTRING_PTR(str_digest);
44 p = RSTRING_PTR(str);
/macosx-10.10.1/ruby-106/ruby/ext/tk/
H A Dstubs.c10 #if !defined(RSTRING_PTR)
11 #define RSTRING_PTR(s) (RSTRING(s)->ptr) macro
166 /* int ret = ruby_open_tcl_dll(RSTRING_PTR(rb_argv0)); */
167 int ret = ruby_open_tcl_dll(rb_argv0 ? RSTRING_PTR(rb_argv0) : 0);
246 /* int ret = ruby_open_tcl_dll(RSTRING_PTR(rb_argv0)); */
247 int ret = ruby_open_tcl_dll(rb_argv0 ? RSTRING_PTR(rb_argv0) : 0);
405 /* st = ruby_open_tcltk_dll(RSTRING_PTR(rb_argv0)); */
406 st = ruby_open_tcltk_dll(rb_argv0 ? RSTRING_PTR(rb_argv0) : 0);
473 /* ruby_open_tcl_dll(RSTRING_PTR(rb_argv0)); */
474 ruby_open_tcl_dll(rb_argv0 ? RSTRING_PTR(rb_argv
[all...]
/macosx-10.10.1/ruby-106/ruby/
H A Dstring.c106 memcpy(tmp, RSTRING_PTR(str), RSTRING_LEN(str));\
309 search_nonascii(RSTRING_PTR(dest), RSTRING_END(dest)))
333 cr = coderange_scan(RSTRING_PTR(str), RSTRING_LEN(str), enc);
354 if (RSTRING_PTR(s) != p || RSTRING_LEN(s) != len){
417 memcpy(RSTRING_PTR(str), ptr, len);
420 RSTRING_PTR(str)[len] = '\0';
525 sp = (unsigned char*)RSTRING_PTR(str);
527 while ((dest = (unsigned char*)RSTRING_PTR(newstr)),
551 len = dp - (unsigned char*)RSTRING_PTR(newstr);
642 memcpy(RSTRING_PTR(str
[all...]
H A Dsprintf.c90 buf = RSTRING_PTR(result);\
479 p = RSTRING_PTR(fmt);
485 buf = RSTRING_PTR(result);
654 if (rb_enc_strlen(RSTRING_PTR(tmp),RSTRING_END(tmp),enc) != 1) {
657 c = rb_enc_codepoint_len(RSTRING_PTR(tmp), RSTRING_END(tmp), &n, enc);
708 slen = rb_enc_strlen(RSTRING_PTR(str),RSTRING_END(str),enc);
713 char *p = rb_enc_nth(RSTRING_PTR(str), RSTRING_END(str),
716 len = p - RSTRING_PTR(str);
728 memcpy(&buf[blen], RSTRING_PTR(str), len);
741 PUSH(RSTRING_PTR(st
[all...]
H A Dload.c71 as_cstr = RSTRING_PTR(as_str);
492 buf = RSTRING_PTR(bufstr);
531 feature = RSTRING_PTR(fullpath);
607 node = (NODE *)rb_load_file(RSTRING_PTR(fname));
688 if (!rb_file_load_ok(RSTRING_PTR(fname)))
839 ext = strrchr(ftptr = RSTRING_PTR(fname), '.');
847 ext = strrchr(ftptr = RSTRING_PTR(tmp), '.');
859 tmp = rb_str_subseq(fname, 0, ext - RSTRING_PTR(fname));
863 ext = strrchr(ftptr = RSTRING_PTR(tmp), '.');
872 ext = strrchr(ftptr = RSTRING_PTR(tm
[all...]
/macosx-10.10.1/ruby-106/ruby/ext/socket/
H A Dancdata.c312 memcpy((char*)&tv, RSTRING_PTR(data), sizeof(tv));
321 memcpy((char*)&ts, RSTRING_PTR(data), sizeof(ts));
335 memcpy((char*)&bt, RSTRING_PTR(data), sizeof(bt));
392 memcpy((char*)&i, RSTRING_PTR(data), sizeof(int));
439 memcpy(&sa, RSTRING_PTR(v_addr), sizeof(sa));
449 memcpy(&sa, RSTRING_PTR(v_spec_dst), sizeof(sa));
498 memcpy(&pktinfo, RSTRING_PTR(data), sizeof(struct in_pktinfo));
545 memcpy(&sa, RSTRING_PTR(v_addr), sizeof(sa));
574 memcpy(pktinfo_ptr, RSTRING_PTR(data), sizeof(*pktinfo_ptr));
678 memcpy((char*)&fd, RSTRING_PTR(dat
[all...]
H A Doption.c185 memcpy((char*)&i, RSTRING_PTR(data), sizeof(int));
231 memcpy((char*)&i, RSTRING_PTR(data), sizeof(int));
286 memcpy((char*)&l, RSTRING_PTR(data), sizeof(struct linger));
301 memcpy((char*)&i, RSTRING_PTR(data), sizeof(int));
316 memcpy((char*)&i, RSTRING_PTR(data), sizeof(int));
332 memcpy((char*)&i, RSTRING_PTR(data), sizeof(unsigned int));
348 memcpy((char*)&s, RSTRING_PTR(data), sizeof(s));
370 memcpy((char*)&i, RSTRING_PTR(data), sizeof(int));
389 memcpy((char*)&s, RSTRING_PTR(data), sizeof(s));
483 memcpy((char*)&s, RSTRING_PTR(dat
[all...]
/macosx-10.10.1/ruby-106/ruby/ext/stringio/
H A Dstringio.c105 return rb_enc_str_new(RSTRING_PTR(str)+pos, len, enc);
646 char c = RSTRING_PTR(ptr->string)[ptr->pos++];
681 p = RSTRING_PTR(ptr->string)+ptr->pos;
701 c = RSTRING_PTR(ptr->string)[ptr->pos++];
715 MEMZERO(RSTRING_PTR(ptr->string) + olen, char, pos - olen);
760 memset(RSTRING_PTR(ptr->string) + len, 0, ptr->pos - len - 1);
766 lpos = 0; p = RSTRING_PTR(ptr->string); pend = p + ptr->pos;
773 clen = p - RSTRING_PTR(ptr->string);
801 cp = RSTRING_PTR(c);
811 s = RSTRING_PTR(st
[all...]
/macosx-10.10.1/ruby-106/ruby/ext/date/
H A Ddate_parse.c91 if (!NIL_P(d) && *RSTRING_PTR(d) == '\'') {
101 s = RSTRING_PTR(y);
118 s = RSTRING_PTR(m);
134 s = RSTRING_PTR(d);
150 s = RSTRING_PTR(y);
183 s = RSTRING_PTR(m);
205 s = RSTRING_PTR(d);
429 s = RSTRING_PTR(str);
461 ss = RSTRING_PTR(str) + sl;
463 ds = RSTRING_PTR(st
[all...]
/macosx-10.10.1/ruby-106/ruby/ext/tk/tkutil/
H A Dtkutil.c29 #if !defined(RSTRING_PTR)
30 #define RSTRING_PTR(s) (RSTRING(s)->ptr) macro
209 if (strncmp(cmd_id_head, RSTRING_PTR(cmd_id), head_len) != 0) {
213 RSTRING_PTR(cmd_id) + head_len, prefix_len) != 0) {
218 rb_str_new2(RSTRING_PTR(cmd_id) + head_len));
1002 if (RSTRING_PTR(value) == (char*)NULL) return Qnil;
1004 if (RSTRING_PTR(value)[0] == '\0'
1005 || strcmp(RSTRING_PTR(value), "0") == 0
1006 || strcmp(RSTRING_PTR(value), "no") == 0
1007 || strcmp(RSTRING_PTR(valu
[all...]
/macosx-10.10.1/ruby-106/ruby/ext/zlib/
H A Dzlib.c418 sum = checksum_long(func, sum, (Bytef*)RSTRING_PTR(str), RSTRING_LEN(str));
664 z->stream.next_out = (Bytef*)RSTRING_PTR(z->buf) + z->buf_filled;
676 z->stream.next_out = (Bytef*)RSTRING_PTR(z->buf);
682 z->stream.next_out = (Bytef*)RSTRING_PTR(z->buf) + z->buf_filled;
726 z->stream.next_out = (Bytef*)RSTRING_PTR(z->buf) + z->buf_filled;
738 z->stream.next_out = (Bytef*)RSTRING_PTR(z->buf);
756 memcpy(RSTRING_PTR(z->buf) + z->buf_filled, src, len);
758 z->stream.next_out = (Bytef*)RSTRING_PTR(z->buf) + z->buf_filled;
762 zstream_append_buffer((z),(Bytef*)RSTRING_PTR(v),RSTRING_LEN(v))
813 memmove(RSTRING_PTR(
[all...]

Completed in 177 milliseconds

12345