Home | History | Annotate | Download | only in src
      1 /*
      2  * test-bio.h - test BIO that stores reads/writes
      3  *
      4  * Copyright (c) 2012 The Chromium Authors. All rights reserved.
      5  * Use of this source code is governed by a BSD-style license that can be
      6  * found in the LICENSE file.
      7  */
      8 
      9 #ifndef TEST_BIO_H
     10 #define TEST_BIO_H
     11 
     12 #include <openssl/bio.h>
     13 
     14 BIO *BIO_new_test();
     15 
     16 size_t BIO_test_output_left (BIO *b);
     17 size_t BIO_test_get_output (BIO *b, unsigned char *buf, size_t bufsz);
     18 void BIO_test_add_input (BIO *b, const unsigned char *buf, size_t bufsz);
     19 
     20 #endif /* !TEST_BIO_H */
     21