OSSL_ENCODER_to_bio.pod 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. =pod
  2. =head1 NAME
  3. OSSL_ENCODER_to_bio,
  4. OSSL_ENCODER_to_fp
  5. - Encoder file output routines
  6. =head1 SYNOPSIS
  7. #include <openssl/encoder.h>
  8. int OSSL_ENCODER_to_bio(OSSL_ENCODER_CTX *ctx, BIO *out);
  9. int OSSL_ENCODER_to_fp(OSSL_ENCODER_CTX *ctx, FILE *fp);
  10. Feature availability macros:
  11. =over 4
  12. =item OSSL_ENCODER_to_fp() is only available when B<OPENSSL_NO_STDIO>
  13. is undefined.
  14. =back
  15. =head1 DESCRIPTION
  16. OSSL_ENCODER_to_bio() runs the encoding process for the
  17. context I<ctx>, with the output going to the B<BIO> I<out>. The
  18. application is required to set up the B<BIO> properly, for example to
  19. have it in text or binary mode if that's appropriate.
  20. =for comment Know your encoder!
  21. OSSL_ENCODER_to_fp() does the same thing as OSSL_ENCODER_to_bio(),
  22. except that the output is going to the B<FILE> I<fp>.
  23. =head1 RETURN VALUES
  24. OSSL_ENCODER_to_bio() and OSSL_ENCODER_to_fp() return 1 on
  25. success, or 0 on failure.
  26. =head1 SEE ALSO
  27. L<provider(7)>, L<OSSL_ENCODER_CTX(3)>
  28. =head1 HISTORY
  29. The functions described here were added in OpenSSL 3.0.
  30. =head1 COPYRIGHT
  31. Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
  32. Licensed under the Apache License 2.0 (the "License"). You may not use
  33. this file except in compliance with the License. You can obtain a copy
  34. in the file LICENSE in the source distribution or at
  35. L<https://www.openssl.org/source/license.html>.
  36. =cut