/external/openssl/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,(unsigned long)argi, 90 bio->method->name,bio->num); 93 bio [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...] |
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 | bss_conn.c | 1 /* crypto/bio/bss_conn.c */ 63 #include <openssl/bio.h> 92 /* int socket; this will be kept in bio->num so that it is 93 * compatible with the bss_sock bio */ 98 int (*info_callback)(const BIO *bio,int state,int ret); 369 static void conn_close_socket(BIO *bio) argument 373 c=(BIO_CONNECT *)bio->ptr; 374 if (bio->num != INVALID_SOCKET) 378 shutdown(bio->num,2); 379 closesocket(bio [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 | b_print.c | 1 /* crypto/bio/b_print.c */ 80 #include <openssl/bio.h> 768 int BIO_printf (BIO *bio, const char *format, ...) argument 775 ret = BIO_vprintf(bio, format, args); 781 int BIO_vprintf (BIO *bio, const char *format, va_list args) argument 799 ret=BIO_write(bio, dynbuf, (int)retlen); 804 ret=BIO_write(bio, hugebuf, (int)retlen);
|
/external/openssl/crypto/pkcs7/ |
H A D | pk7_mime.c | 77 int SMIME_write_PKCS7(BIO *bio, PKCS7 *p7, BIO *data, int flags) argument 89 return SMIME_write_ASN1(bio, (ASN1_VALUE *)p7, data, flags, 94 PKCS7 *SMIME_read_PKCS7(BIO *bio, BIO **bcont) argument 96 return (PKCS7 *)SMIME_read_ASN1(bio, bcont, ASN1_ITEM_rptr(PKCS7));
|
H A D | bio_ber.c | 156 int bio_ber_get_header(BIO *bio, BIO_BER_CTX *ctx) argument 188 i=BIO_read(bio->next_bio,&(ctx->buf[ctx->buf_len]),i);
|
H A D | pk7_doit.c | 256 BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio) argument 370 if (bio == NULL) 373 bio=BIO_new(BIO_s_null()); 375 bio = BIO_new_mem_buf(os->data, os->length); 376 if(bio == NULL) 378 bio=BIO_new(BIO_s_mem()); 379 if (bio == NULL) 381 BIO_set_mem_eof_return(bio,0); 385 BIO_push(out,bio); 387 out = bio; 416 BIO *out=NULL,*btmp=NULL,*etmp=NULL,*bio=NULL; local 642 PKCS7_find_digest(EVP_MD_CTX **pmd, BIO *bio, int nid) argument 697 PKCS7_dataFinal(PKCS7 *p7, BIO *bio) argument 916 PKCS7_dataVerify(X509_STORE *cert_store, X509_STORE_CTX *ctx, BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si) argument 970 PKCS7_signatureVerify(BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si, X509 *x509) argument [all...] |
/external/openssl/crypto/err/ |
H A D | err_prn.c | 92 BIO bio; local 94 BIO_set(&bio,BIO_s_file()); 95 BIO_set_fp(&bio,fp,BIO_NOCLOSE); 97 return BIO_printf(&bio, "%s", str);
|
/external/openssl/apps/ |
H A D | asn1pars.c | 85 static int do_generate(BIO *bio, char *genstr, char *genconf, BUF_MEM *buf); 387 static int do_generate(BIO *bio, char *genstr, char *genconf, BUF_MEM *buf) argument 404 BIO_printf(bio, "Can't find 'asn1' in '%s'\n", genconf); 433 BIO_printf(bio, "Error on line %ld of config file '%s'\n", 436 BIO_printf(bio, "Error loading config file '%s'\n", genconf);
|
H A D | enc.c | 63 #include <openssl/bio.h> 84 BIO *bio=bio_; local 90 BIO_printf(bio,"-%-25s",name->name); 93 BIO_printf(bio,"\n"); 97 BIO_printf(bio," ");
|
H A D | s_cb.c | 281 long MS_CALLBACK bio_dump_callback(BIO *bio, int cmd, const char *argp, argument 286 out=(BIO *)BIO_get_callback_arg(bio); 292 (void *)bio,argp,(unsigned long)argi,ret,ret); 299 (void *)bio,argp,(unsigned long)argi,ret,ret); 344 BIO *bio = arg; local 602 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); 608 BIO_printf(bio, " "); 617 BIO_printf(bio, "\n "); 618 BIO_printf(bio, " %02x", ((const unsigned char*)buf)[i]); 621 BIO_printf(bio, " 631 BIO *bio = arg; local [all...] |
H A D | s_client.c | 1632 static void print_stuff(BIO *bio, SSL *s, int full) argument 1656 BIO_printf(bio,"---\nCertificate chain\n"); 1661 BIO_printf(bio,"%2d s:%s\n",i,buf); 1664 BIO_printf(bio," i:%s\n",buf); 1666 PEM_write_bio_X509(bio,sk_X509_value(sk,i)); 1670 BIO_printf(bio,"---\n"); 1674 BIO_printf(bio,"Server certificate\n"); 1676 PEM_write_bio_X509(bio,peer); 1679 BIO_printf(bio,"subject=%s\n",buf); 1682 BIO_printf(bio,"issue [all...] |
H A D | x509.c | 67 #include <openssl/bio.h> 163 static int purpose_print(BIO *bio, X509 *cert, X509_PURPOSE *pt); 1279 static int purpose_print(BIO *bio, X509 *cert, X509_PURPOSE *pt) argument 1288 BIO_printf(bio, "%s%s : ", pname, i ? " CA" : ""); 1289 if (idret == 1) BIO_printf(bio, "Yes\n"); 1290 else if (idret == 0) BIO_printf(bio, "No\n"); 1291 else BIO_printf(bio, "Yes (WARNING code=%d)\n", idret);
|
H A D | s_server.c | 440 BIO_printf(bio_err," -nbio_test - test with the non-blocking test bio\n"); 1734 static void print_stats(BIO *bio, SSL_CTX *ssl_ctx) argument 1736 BIO_printf(bio,"%4ld items in the session cache\n", 1738 BIO_printf(bio,"%4ld client connects (SSL_connect())\n", 1740 BIO_printf(bio,"%4ld client renegotiates (SSL_connect())\n", 1742 BIO_printf(bio,"%4ld client connects that finished\n", 1744 BIO_printf(bio,"%4ld server accepts (SSL_accept())\n", 1746 BIO_printf(bio,"%4ld server renegotiates (SSL_accept())\n", 1748 BIO_printf(bio,"%4ld server accepts that finished\n", 1750 BIO_printf(bio," 2221 BIO *bio; local [all...] |
/external/openssl/ssl/ |
H A D | bio_ssl.c | 64 #include <openssl/bio.h> 300 BIO *dbio,*bio; local 355 bio=SSL_get_rbio(ssl); 356 if (bio != NULL) 359 BIO_push(bio,b->next_bio); 360 b->next_bio=bio; 361 CRYPTO_add(&bio->references,1,CRYPTO_LOCK_BIO);
|
H A D | s3_pkt.c | 1144 BIO *bio; local 1150 bio=SSL_get_rbio(s); 1151 BIO_clear_retry_flags(bio); 1152 BIO_set_retry_read(bio); 1317 BIO *bio; local 1323 bio=SSL_get_rbio(s); 1324 BIO_clear_retry_flags(bio); 1325 BIO_set_retry_read(bio);
|
H A D | d1_pkt.c | 908 BIO *bio; local 910 bio=SSL_get_rbio(s); 912 BIO_clear_retry_flags(bio); 913 BIO_set_retry_read(bio); 998 BIO *bio; local 1004 bio=SSL_get_rbio(s); 1005 BIO_clear_retry_flags(bio); 1006 BIO_set_retry_read(bio); 1203 BIO *bio; local 1209 bio [all...] |
/external/openssl/crypto/ |
H A D | mem_dbg.c | 118 #include <openssl/bio.h> 659 BIO *bio; member in struct:mem_leak_st 675 if(m->addr == (char *)l->bio) 702 BIO_puts(l->bio,buf); 739 BIO_puts(l->bio,buf); 765 ml.bio=b;
|
/external/ipsec-tools/src/racoon/ |
H A D | eaytest.c | 51 #include <openssl/bio.h> 96 BIO *bio; local 100 bio = BIO_new_mem_buf(pubkey_txt, strlen(pubkey_txt)); 101 evp = PEM_read_bio_PUBKEY(bio, NULL, NULL, NULL); 199 BIO *bio; local 206 bio = BIO_new_mem_buf(buf, strlen(buf)); 207 error = PEM_read_bio(bio, &nm, &header, &data, &len);
|
H A D | crypto_openssl.c | 442 BIO *bio = NULL; local 445 if (length != -1 && (bio = BIO_new(BIO_s_mem())) != NULL) { 446 BIO_write(bio, value, length); 448 return bio; 497 BIO *bio = BIO_from_keystore(CAfile); local 502 if (!bio) { 505 stack = PEM_X509_INFO_read_bio(bio, NULL, NULL, NULL); 506 BIO_free(bio); 797 BIO *bio = NULL; local 807 bio 859 BIO *bio; local 896 BIO *bio = BIO_from_keystore(path); local 1002 BIO *bio = BIO_from_keystore(path); local 2568 BIO *bio=NULL, *b64=NULL; local 2605 BIO *bio=NULL, *b64=NULL; local [all...] |
H A D | ipsec_doi.c | 4008 BIO *bio; local 4014 bio = BIO_new(BIO_s_mem()); 4016 X509_NAME_print_ex(bio, xn, 0, 0); 4017 len = BIO_get_mem_data(bio, &ptr); 4023 BIO_free(bio); 4554 BIO *bio = BIO_new(BIO_s_mem()); local 4555 X509_NAME_print_ex(bio, xn, 0, 0); 4556 len = BIO_get_mem_data(bio, &dat); 4560 BIO_free(bio);
|
/external/kernel-headers/original/linux/ |
H A D | bio.h | 64 struct bio; 65 typedef int (bio_end_io_t) (struct bio *, unsigned int, int); 66 typedef void (bio_destructor_t) (struct bio *); 72 struct bio { struct 74 struct bio *bi_next; /* request queue link */ 99 * in this bio 117 * bio flags 124 #define BIO_BOUNCED 5 /* bio is a bounce bio */ 127 #define bio_flagged(bio, fla 349 __bio_kmap_irq(struct bio *bio, unsigned short idx, unsigned long *flags) argument [all...] |
/external/openssl/crypto/asn1/ |
H A D | asn_mime.c | 97 static STACK_OF(MIME_HEADER) *mime_parse_hdr(BIO *bio); 104 static int multi_split(BIO *bio, char *bound, STACK_OF(BIO) **ret); 121 BIO *bio, *tbio; local 122 bio = BIO_new_NDEF(out, val, it); 123 if (!bio) 128 SMIME_crlf_copy(in, bio, flags); 129 (void)BIO_flush(bio); 133 tbio = BIO_pop(bio); 134 BIO_free(bio); 135 bio 182 b64_read_asn1(BIO *bio, const ASN1_ITEM *it) argument 278 SMIME_write_ASN1(BIO *bio, ASN1_VALUE *val, BIO *data, int flags, int ctype_nid, int econt_nid, STACK_OF(X509_ALGOR) *mdalgs, const ASN1_ITEM *it) argument 428 SMIME_read_ASN1(BIO *bio, BIO **bcont, const ASN1_ITEM *it) argument 604 multi_split(BIO *bio, char *bound, STACK_OF(BIO) **ret) argument [all...] |