#include "avformat.h"
#include "internal.h"
#include "network.h"
#include "os_support.h"
#include "url.h"
#include "tls.h"
#include "libavutil/avstring.h"
#include "libavutil/avutil.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/thread.h"
#include <openssl/bio.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
 
Go to the source code of this file.
 | 
| int  | ff_openssl_init (void) | 
|   | 
| void  | ff_openssl_deinit (void) | 
|   | 
| static int  | print_tls_error (URLContext *h, int ret) | 
|   | 
| static int  | tls_close (URLContext *h) | 
|   | 
| static int  | url_bio_create (BIO *b) | 
|   | 
| static int  | url_bio_destroy (BIO *b) | 
|   | 
| static int  | url_bio_bread (BIO *b, char *buf, int len) | 
|   | 
| static int  | url_bio_bwrite (BIO *b, const char *buf, int len) | 
|   | 
| static long  | url_bio_ctrl (BIO *b, int cmd, long num, void *ptr) | 
|   | 
| static int  | url_bio_bputs (BIO *b, const char *str) | 
|   | 
| static int  | tls_open (URLContext *h, const char *uri, int flags, AVDictionary **options) | 
|   | 
| static int  | tls_read (URLContext *h, uint8_t *buf, int size) | 
|   | 
| static int  | tls_write (URLContext *h, const uint8_t *buf, int size) | 
|   | 
| static int  | tls_get_file_handle (URLContext *h) | 
|   | 
| static int  | tls_get_short_seek (URLContext *h) | 
|   | 
◆ GET_BIO_DATA
      
        
          | #define GET_BIO_DATA | 
          ( | 
            | 
          x | ) | 
             (x)->ptr | 
        
      
 
 
◆ ff_openssl_init()
      
        
          | int ff_openssl_init  | 
          ( | 
          void  | 
           | ) | 
           | 
        
      
 
 
◆ ff_openssl_deinit()
      
        
          | void ff_openssl_deinit  | 
          ( | 
          void  | 
           | ) | 
           | 
        
      
 
 
◆ print_tls_error()
◆ tls_close()
◆ url_bio_create()
  
  
      
        
          | static int url_bio_create  | 
          ( | 
          BIO *  | 
          b | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ url_bio_destroy()
  
  
      
        
          | static int url_bio_destroy  | 
          ( | 
          BIO *  | 
          b | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ url_bio_bread()
  
  
      
        
          | static int url_bio_bread  | 
          ( | 
          BIO *  | 
          b,  | 
         
        
           | 
           | 
          char *  | 
          buf,  | 
         
        
           | 
           | 
          int  | 
          len  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
◆ url_bio_bwrite()
  
  
      
        
          | static int url_bio_bwrite  | 
          ( | 
          BIO *  | 
          b,  | 
         
        
           | 
           | 
          const char *  | 
          buf,  | 
         
        
           | 
           | 
          int  | 
          len  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
◆ url_bio_ctrl()
  
  
      
        
          | static long url_bio_ctrl  | 
          ( | 
          BIO *  | 
          b,  | 
         
        
           | 
           | 
          int  | 
          cmd,  | 
         
        
           | 
           | 
          long  | 
          num,  | 
         
        
           | 
           | 
          void *  | 
          ptr  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
◆ url_bio_bputs()
  
  
      
        
          | static int url_bio_bputs  | 
          ( | 
          BIO *  | 
          b,  | 
         
        
           | 
           | 
          const char *  | 
          str  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
◆ tls_open()
◆ tls_read()
◆ tls_write()
◆ tls_get_file_handle()
◆ tls_get_short_seek()
◆ openssl_init
◆ url_bio_method
  
  
      
        
          | BIO_METHOD url_bio_method | 
         
       
   | 
  
static   | 
  
 
Initial value:= {
    .type = BIO_TYPE_SOURCE_SINK,
    .name = "urlprotocol bio",
}
 
Definition at line 238 of file tls_openssl.c.
Referenced by tls_open().
 
 
◆ options
◆ tls_class
Initial value:= {
    .class_name = "tls",
}
 
Definition at line 381 of file tls_openssl.c.
 
 
◆ ff_tls_protocol
 
#define URL_PROTOCOL_FLAG_NETWORK
 
#define TLS_COMMON_OPTIONS(pstruct, options_field)
 
static const AVClass tls_class
 
static int url_bio_create(BIO *b)
 
static int tls_write(URLContext *h, const uint8_t *buf, int size)
 
#define LIBAVUTIL_VERSION_INT
 
const char * av_default_item_name(void *ptr)
Return the context name.
 
static long url_bio_ctrl(BIO *b, int cmd, long num, void *ptr)
 
static int url_bio_destroy(BIO *b)
 
static int url_bio_bwrite(BIO *b, const char *buf, int len)
 
static int tls_open(URLContext *h, const char *uri, int flags, AVDictionary **options)
 
static int url_bio_bread(BIO *b, char *buf, int len)
 
static const AVOption options[]
 
static int tls_get_file_handle(URLContext *h)
 
static int tls_get_short_seek(URLContext *h)
 
static int tls_read(URLContext *h, uint8_t *buf, int size)
 
#define flags(name, subs,...)
 
static int tls_close(URLContext *h)
 
static int url_bio_bputs(BIO *b, const char *str)