Lines Matching refs:bp

243                                     char **pnm, const char *name, BIO *bp,  in pem_bytes_read_bio_flags()  argument
257 if (!PEM_read_bio_ex(bp, &nm, &header, &data, &len, flags)) { in pem_bytes_read_bio_flags()
286 const char *name, BIO *bp, pem_password_cb *cb, in PEM_bytes_read_bio() argument
288 return pem_bytes_read_bio_flags(pdata, plen, pnm, name, bp, cb, u, in PEM_bytes_read_bio()
293 const char *name, BIO *bp, pem_password_cb *cb, in PEM_bytes_read_bio_secmem() argument
295 return pem_bytes_read_bio_flags(pdata, plen, pnm, name, bp, cb, u, in PEM_bytes_read_bio_secmem()
319 int PEM_ASN1_write_bio(i2d_of_void *i2d, const char *name, BIO *bp, in PEM_ASN1_write_bio() argument
407 i = PEM_write_bio(bp, name, buf, data, i); in PEM_ASN1_write_bio()
610 int PEM_write_bio(BIO *bp, const char *name, const char *header, in PEM_write_bio() argument
627 if ((BIO_write(bp, "-----BEGIN ", 11) != 11) || in PEM_write_bio()
628 (BIO_write(bp, name, nlen) != nlen) || in PEM_write_bio()
629 (BIO_write(bp, "-----\n", 6) != 6)) { in PEM_write_bio()
636 if ((BIO_write(bp, header, i) != i) || (BIO_write(bp, "\n", 1) != 1)) { in PEM_write_bio()
653 if ((outl) && (BIO_write(bp, (char *)buf, outl) != outl)) { in PEM_write_bio()
662 if ((outl > 0) && (BIO_write(bp, (char *)buf, outl) != outl)) { in PEM_write_bio()
666 if ((BIO_write(bp, "-----END ", 9) != 9) || in PEM_write_bio()
667 (BIO_write(bp, name, nlen) != nlen) || in PEM_write_bio()
668 (BIO_write(bp, "-----\n", 6) != 6)) { in PEM_write_bio()
754 static int get_name(BIO *bp, char **name, unsigned int flags) in get_name() argument
770 len = BIO_gets(bp, linebuf, LINESIZE); in get_name()
816 static int get_header_and_data(BIO *bp, BIO **header, BIO **data, char *name, in get_header_and_data() argument
835 len = BIO_gets(bp, linebuf, LINESIZE); in get_header_and_data()
924 int PEM_read_bio_ex(BIO *bp, char **name_out, char **header, in PEM_read_bio_ex() argument
951 if (!get_name(bp, &name, flags)) in PEM_read_bio_ex()
953 if (!get_header_and_data(bp, &headerB, &dataB, name, flags)) in PEM_read_bio_ex()
1009 int PEM_read_bio(BIO *bp, char **name, char **header, unsigned char **data, in PEM_read_bio() argument
1012 return PEM_read_bio_ex(bp, name, header, data, len, PEM_FLAG_EAY_COMPATIBLE); in PEM_read_bio()