/macosx-10.10.1/tcl-105/tcl_ext/tls/tls/ |
H A D | tlsBIO.c | 39 BIO *bio; local 41 bio = BIO_new(&BioMethods); 42 bio->ptr = (char*)statePtr; 43 bio->init = 1; 44 bio->shutdown = flags; 46 return bio; 56 BioWrite (bio, buf, bufLen) 57 BIO *bio; 61 Tcl_Channel chan = Tls_GetParent((State*)(bio->ptr)); 65 (unsigned int) bio, bufLe [all...] |
H A D | tlsX509.c | 96 BIO *bio; 110 if ((bio = BIO_new(BIO_s_mem())) == NULL) { 118 X509_NAME_print_ex(bio, X509_get_subject_name(cert), 0, flags); 119 n = BIO_read(bio, subject, min(BIO_pending(bio), BUFSIZ - 1)); 122 BIO_flush(bio); 124 X509_NAME_print_ex(bio, X509_get_issuer_name(cert), 0, flags); 125 n = BIO_read(bio, issuer, min(BIO_pending(bio), BUFSIZ - 1)); 128 BIO_flush(bio); 95 BIO *bio; local [all...] |
/macosx-10.10.1/OpenSSL098-52/src/demos/eay/ |
H A D | conn.c | 11 #include <openssl/bio.h> 23 BIO *bio; local 38 bio=BIO_new(BIO_s_socks4a_connect()); 40 BIO_set_conn_hostname(bio,host); 41 BIO_set_proxies(bio,pxy); 42 BIO_set_socks_userid(bio,"eay"); 43 BIO_set_nbio(bio,1); 51 i=BIO_write(bio,&(p[off]),len); 54 if (BIO_should_retry(bio)) 72 i=BIO_read(bio,bu [all...] |
H A D | base64.c | 5 #include <openssl/bio.h> 11 BIO *mbio,*b64bio,*bio; local 18 bio=BIO_push(b64bio,mbio); 19 /* We now have bio pointing at b64->mem, the base64 bio encodes on 26 BIO_write(bio,buf,i); 32 BIO_flush(bio); 37 /* hmm... this one was not defined by a macro in bio.h, it will be for 38 * 0.9.1. The other option is too just read from the memory bio. 48 BIO_free_all(bio); [all...] |
/macosx-10.10.1/ruby-106/ruby/ext/openssl/ |
H A D | ossl_bio.c | 19 BIO *bio; local 36 if (!(bio = BIO_new_fp(fp, BIO_CLOSE))){ 43 bio = BIO_new_mem_buf(RSTRING_PTR(obj), RSTRING_LENINT(obj)); 44 if (!bio) ossl_raise(eOSSLError, NULL); 47 return bio; 59 ossl_membio2str0(BIO *bio) argument 64 BIO_get_mem_ptr(bio, &buf); 71 ossl_protect_membio2str(BIO *bio, int *status) argument 73 return rb_protect((VALUE(*)_((VALUE)))ossl_membio2str0, (VALUE)bio, status); 77 ossl_membio2str(BIO *bio) argument [all...] |
H A D | ossl_config.c | 35 BIO *bio; local 40 bio = ossl_obj2bio(str); 43 BIO_free(bio); 46 if(!NCONF_load_bio(conf, bio, &eline)){ 47 BIO_free(bio); 53 BIO_free(bio);
|
H A D | ossl_pkey.c | 143 BIO *bio; local 149 bio = ossl_obj2bio(data); 150 if (!(pkey = d2i_PrivateKey_bio(bio, NULL))) { 151 OSSL_BIO_reset(bio); 155 if (!(pkey = PEM_read_bio_PrivateKey(bio, NULL, ossl_pem_passwd_cb, passwd))) { 156 OSSL_BIO_reset(bio); 157 if (!(pkey = d2i_PUBKEY_bio(bio, NULL))) { 158 OSSL_BIO_reset(bio); 162 pkey = PEM_read_bio_PUBKEY(bio, NULL, ossl_pem_passwd_cb, passwd); 167 BIO_free(bio); [all...] |
/macosx-10.10.1/ruby-106/ruby/test/net/http/ |
H A D | test_buffered_io.rb | 12 bio = BufferedIO.new(s) 13 assert_equal s, bio.io 14 assert_equal s.eof?, bio.eof?
|
/macosx-10.10.1/OpenSSL098-52/src/crypto/bio/ |
H A D | bio_cb.c | 1 /* crypto/bio/bio_cb.c */ 63 #include <openssl/bio.h> 66 long MS_CALLBACK BIO_debug_callback(BIO *bio, int cmd, const char *argp, argument 78 BIO_snprintf(buf,sizeof buf,"BIO[%08lX]:",(unsigned long)bio); 84 BIO_snprintf(p,p_maxlen,"Free - %s\n",bio->method->name); 87 if (bio->method->type & BIO_TYPE_DESCRIPTOR) 89 bio->num,argi,bio->method->name,bio->num); 92 bio [all...] |
H A D | bss_bio.c | 1 /* crypto/bio/bss_bio.c -*- Mode: C; c-file-style: "eay" -*- */ 82 #include <openssl/bio.h> 96 static int bio_new(BIO *bio); 97 static int bio_free(BIO *bio); 98 static int bio_read(BIO *bio, char *buf, int size); 99 static int bio_write(BIO *bio, const char *buf, int num); 100 static long bio_ctrl(BIO *bio, int cmd, long num, void *ptr); 101 static int bio_puts(BIO *bio, const char *str); 104 static void bio_destroy_pair(BIO *bio); 145 static int bio_new(BIO *bio) argument 162 bio_free(BIO *bio) argument 187 bio_read(BIO *bio, char *buf, int size_) argument 280 bio_nread0(BIO *bio, char **buf) argument 318 bio_nread(BIO *bio, char **buf, size_t num_) argument 352 bio_write(BIO *bio, const char *buf, int num_) argument 431 bio_nwrite0(BIO *bio, char **buf) argument 479 bio_nwrite(BIO *bio, char **buf, size_t num_) argument 503 bio_ctrl(BIO *bio, int cmd, long num, void *ptr) argument 698 bio_puts(BIO *bio, const char *str) argument 757 bio_destroy_pair(BIO *bio) argument 841 BIO_ctrl_get_write_guarantee(BIO *bio) argument 846 BIO_ctrl_get_read_request(BIO *bio) argument 851 BIO_ctrl_reset_read_request(BIO *bio) argument 860 BIO_nread0(BIO *bio, char **buf) argument 877 BIO_nread(BIO *bio, char **buf, int num) argument 893 BIO_nwrite0(BIO *bio, char **buf) argument 910 BIO_nwrite(BIO *bio, char **buf, int num) argument [all...] |
H A D | bio_lib.c | 1 /* crypto/bio/bio_lib.c */ 63 #include <openssl/bio.h> 84 int BIO_set(BIO *bio, BIO_METHOD *method) argument 86 bio->method=method; 87 bio->callback=NULL; 88 bio->cb_arg=NULL; 89 bio->init=0; 90 bio->shutdown=1; 91 bio->flags=0; 92 bio 408 BIO_ctrl_pending(BIO *bio) argument 413 BIO_ctrl_wpending(BIO *bio) argument 420 BIO_push(BIO *b, BIO *bio) argument 456 BIO_get_retry_BIO(BIO *bio, int *reason) argument 472 BIO_get_retry_reason(BIO *bio) argument 477 BIO_find_type(BIO *bio, int type) argument 506 BIO_free_all(BIO *bio) argument 524 BIO *ret=NULL,*eoc=NULL,*bio,*new; local 580 BIO_set_ex_data(BIO *bio, int idx, void *data) argument 585 BIO_get_ex_data(BIO *bio, int idx) argument 590 BIO_number_read(BIO *bio) argument 596 BIO_number_written(BIO *bio) argument [all...] |
H A D | bss_acpt.c | 1 /* crypto/bio/bss_acpt.c */ 63 #include <openssl/bio.h> 168 static void acpt_close_socket(BIO *bio) argument 172 c=(BIO_ACCEPT *)bio->ptr; 178 bio->num=INVALID_SOCKET; 202 BIO *bio=NULL,*dbio; local 253 bio=BIO_new_socket(i,BIO_CLOSE); 254 if (bio == NULL) goto err; 256 BIO_set_callback(bio,BIO_get_callback(b)); 257 BIO_set_callback_arg(bio,BIO_get_callback_ar [all...] |
/macosx-10.10.1/Security-57031.1.35/Security/libsecurity_apple_csp/open_ssl/bio/ |
H A D | bio_lib.c | 19 /* crypto/bio/bio_lib.c */ 81 #include <openssl/bio.h> 105 int BIO_set(BIO *bio, const BIO_METHOD *method) argument 107 bio->method=method; 108 bio->callback=NULL; 109 bio->cb_arg=NULL; 110 bio->init=0; 111 bio->shutdown=1; 112 bio->flags=0; 113 bio 368 BIO_ctrl_pending(BIO *bio) argument 373 BIO_ctrl_wpending(BIO *bio) argument 380 BIO_push(BIO *b, BIO *bio) argument 415 BIO_get_retry_BIO(BIO *bio, int *reason) argument 431 BIO_get_retry_reason(BIO *bio) argument 436 BIO_find_type(BIO *bio, int type) argument 458 BIO_free_all(BIO *bio) argument 476 BIO *ret=NULL,*eoc=NULL,*bio,*new; local 532 BIO_set_ex_data(BIO *bio, int idx, void *data) argument 537 BIO_get_ex_data(BIO *bio, int idx) argument 542 BIO_number_read(BIO *bio) argument 548 BIO_number_written(BIO *bio) argument [all...] |
/macosx-10.10.1/apache-793/httpd/modules/ssl/ |
H A D | ssl_util_ssl.c | 179 BIO* bio; local 182 if ((bio = BIO_new(BIO_s_mem())) == NULL) 184 ASN1_STRING_print_ex(bio, X509_NAME_ENTRY_get_data(xsne), 186 len = BIO_pending(bio); 188 len = BIO_read(bio, result, len); 190 BIO_free(bio); 202 BIO *bio; local 205 if ((bio = BIO_new(BIO_s_mem())) == NULL) 207 X509_NAME_print_ex(bio, dn, 0, XN_FLAG_RFC2253); 208 len = BIO_pending(bio); 231 BIO *bio; local 429 BIO *bio; local 442 BIO *bio; local 466 BIO *bio; local [all...] |
H A D | ssl_engine_log.c | 131 BIO *bio = BIO_new(BIO_s_mem()); local 133 if (bio) { 143 BIO_puts(bio, " [subject: "); 147 BIO_puts(bio, name); 149 BIO_puts(bio, "-empty-"); 152 BIO_puts(bio, " / issuer: "); 156 BIO_puts(bio, name); 158 BIO_puts(bio, "-empty-"); 161 BIO_puts(bio, " / serial: "); 162 if (i2a_ASN1_INTEGER(bio, X509_get_serialNumbe [all...] |
H A D | ssl_util_ocsp.c | 32 BIO *bio; local 37 bio = BIO_new(BIO_s_mem()); 39 BIO_printf(bio, "POST %s%s%s HTTP/1.0\r\n" 48 if (i2d_OCSP_REQUEST_bio(bio, req) != 1) { 49 BIO_free(bio); 53 return bio; 180 * BIO 'bio', and return the decoded OCSP response object, or NULL on 182 static OCSP_RESPONSE *read_response(apr_socket_t *sd, BIO *bio, conn_rec *c, argument 265 BIO_write(bio, data, (int)len); 273 * bio 291 BIO *bio; local [all...] |
/macosx-10.10.1/OpenSSL098-52/src/crypto/asn1/ |
H A D | asn_mime.c | 94 static STACK_OF(MIME_HEADER) *mime_parse_hdr(BIO *bio); 101 static int multi_split(BIO *bio, char *bound, STACK_OF(BIO) **ret); 133 static ASN1_VALUE *b64_read_asn1(BIO *bio, const ASN1_ITEM *it) argument 141 bio = BIO_push(b64, bio); 142 val = ASN1_item_d2i_bio(it, bio, NULL); 145 (void)BIO_flush(bio); 146 bio = BIO_pop(bio); 205 int int_smime_write_ASN1(BIO *bio, ASN1_VALU argument 360 SMIME_read_ASN1(BIO *bio, BIO **bcont, const ASN1_ITEM *it) argument 536 multi_split(BIO *bio, char *bound, STACK_OF(BIO) **ret) argument [all...] |
/macosx-10.10.1/OpenSSL098-52/src/crypto/pem/ |
H A D | pem_x509.c | 62 #include <openssl/bio.h>
|
H A D | pem_xaux.c | 62 #include <openssl/bio.h>
|
/macosx-10.10.1/OpenSSL098-52/src/crypto/pkcs7/ |
H A D | pk7_mime.c | 64 PKCS7 *SMIME_read_PKCS7(BIO *bio, BIO **bcont) argument 66 return (PKCS7 *)SMIME_read_ASN1(bio, bcont, ASN1_ITEM_rptr(PKCS7)); 112 int SMIME_write_PKCS7(BIO *bio, PKCS7 *p7, BIO *data, int flags) argument 121 return int_smime_write_ASN1(bio, (ASN1_VALUE *)p7, data, flags,
|
/macosx-10.10.1/curl-83.1.2/curl/docs/examples/ |
H A D | usercertinmem.c | 45 BIO *bio = NULL; local 118 bio = BIO_new_mem_buf((char *)mypem, -1); 120 if (bio == NULL) { 127 cert = PEM_read_bio_X509(bio, NULL, 0, NULL); 138 /*create a bio for the RSA key*/ 144 /*read the key bio into an RSA object*/ 147 printf("Failed to create key bio\n"); 157 if (bio) 158 BIO_free(bio);
|
H A D | cacertinmem.c | 47 BIO * bio; local 91 bio=BIO_new_mem_buf(mypem, -1); 95 PEM_read_bio_X509(bio, &cert, 0, NULL); 108 BIO_free(bio);
|
/macosx-10.10.1/OpenSSL098-52/src/apps/ |
H A D | s_cb.c | 265 long MS_CALLBACK bio_dump_callback(BIO *bio, int cmd, const char *argp, argument 270 out=(BIO *)BIO_get_callback_arg(bio); 276 (void *)bio,argp,argi,ret,ret); 283 (void *)bio,argp,argi,ret,ret); 328 BIO *bio = arg; local 589 BIO_printf(bio, "%s %s%s [length %04lx]%s%s\n", str_write_p, str_version, str_content_type, (unsigned long)len, str_details1, str_details2); 595 BIO_printf(bio, " "); 604 BIO_printf(bio, "\n "); 605 BIO_printf(bio, " %02x", ((const unsigned char*)buf)[i]); 608 BIO_printf(bio, " 618 BIO *bio = arg; local [all...] |
/macosx-10.10.1/OpenSSL098-52/src/crypto/cms/ |
H A D | cms_io.c | 120 int SMIME_write_CMS(BIO *bio, CMS_ContentInfo *cms, BIO *data, int flags) argument 130 return int_smime_write_ASN1(bio, (ASN1_VALUE *)cms, data, flags, 136 CMS_ContentInfo *SMIME_read_CMS(BIO *bio, BIO **bcont) argument 138 return (CMS_ContentInfo *)SMIME_read_ASN1(bio, bcont,
|
/macosx-10.10.1/Security-57031.1.35/Security/libsecurity_apple_csp/open_ssl/ |
H A D | cryptlib.h | 91 #include <openssl/bio.h>
|