Changeset c301152 in mod_gnutls for src/gnutls_io.c


Ignore:
Timestamp:
Apr 24, 2005, 6:21:50 PM (14 years ago)
Author:
Paul Querna <chip@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
7ba803b
Parents:
46b85d8
Message:
  • move hooks to gnutls_hooks.c
  • use 'mgs_' as the prefix for all symbols, instead of mixed prefixes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_io.c

    r46b85d8 rc301152  
    3636                                           apr_status_t status)
    3737{
    38     mod_gnutls_handle_t *ctxt = (mod_gnutls_handle_t *) f->ctx;
     38    mgs_handle_t *ctxt = (mgs_handle_t *) f->ctx;
    3939    apr_bucket *bucket;
    4040
     
    6464}
    6565
    66 static int char_buffer_read(mod_gnutls_char_buffer_t * buffer, char *in,
     66static int char_buffer_read(mgs_char_buffer_t * buffer, char *in,
    6767                            int inl)
    6868{
     
    8888}
    8989
    90 static int char_buffer_write(mod_gnutls_char_buffer_t * buffer, char *in,
     90static int char_buffer_write(mgs_char_buffer_t * buffer, char *in,
    9191                             int inl)
    9292{
     
    182182
    183183
    184 static apr_status_t gnutls_io_input_read(mod_gnutls_handle_t * ctxt,
     184static apr_status_t gnutls_io_input_read(mgs_handle_t * ctxt,
    185185                                         char *buf, apr_size_t * len)
    186186{
     
    311311}
    312312
    313 static apr_status_t gnutls_io_input_getline(mod_gnutls_handle_t * ctxt,
     313static apr_status_t gnutls_io_input_getline(mgs_handle_t * ctxt,
    314314                                            char *buf, apr_size_t * len)
    315315{
     
    354354}
    355355
    356 static int gnutls_do_handshake(mod_gnutls_handle_t * ctxt)
     356static int gnutls_do_handshake(mgs_handle_t * ctxt)
    357357{
    358358    int ret;
     
    404404}
    405405
    406 int mod_gnutls_rehandshake(mod_gnutls_handle_t * ctxt)
     406int mgs_rehandshake(mgs_handle_t * ctxt)
    407407{
    408408    int rv;
     
    425425
    426426
    427 apr_status_t mod_gnutls_filter_input(ap_filter_t* f,
     427apr_status_t mgs_filter_input(ap_filter_t* f,
    428428                                     apr_bucket_brigade * bb,
    429429                                     ap_input_mode_t mode,
     
    432432{
    433433    apr_status_t status = APR_SUCCESS;
    434     mod_gnutls_handle_t *ctxt = (mod_gnutls_handle_t *) f->ctx;
     434    mgs_handle_t *ctxt = (mgs_handle_t *) f->ctx;
    435435    apr_size_t len = sizeof(ctxt->input_buffer);
    436436
     
    489489}
    490490
    491 apr_status_t mod_gnutls_filter_output(ap_filter_t * f,
     491apr_status_t mgs_filter_output(ap_filter_t * f,
    492492                                      apr_bucket_brigade * bb)
    493493{
    494494    apr_size_t ret;
    495495    apr_bucket* e;
    496     mod_gnutls_handle_t *ctxt = (mod_gnutls_handle_t *) f->ctx;
     496    mgs_handle_t *ctxt = (mgs_handle_t *) f->ctx;
    497497    apr_status_t status = APR_SUCCESS;
    498498    apr_read_type_e rblock = APR_NONBLOCK_READ;
     
    593593}
    594594
    595 ssize_t mod_gnutls_transport_read(gnutls_transport_ptr_t ptr,
     595ssize_t mgs_transport_read(gnutls_transport_ptr_t ptr,
    596596                                  void *buffer, size_t len)
    597597{
    598     mod_gnutls_handle_t *ctxt = ptr;
     598    mgs_handle_t *ctxt = ptr;
    599599    apr_status_t rc;
    600600    apr_size_t in = len;
     
    660660
    661661
    662 static ssize_t write_flush(mod_gnutls_handle_t * ctxt)
     662static ssize_t write_flush(mgs_handle_t * ctxt)
    663663{
    664664    apr_bucket *e;
     
    692692}
    693693
    694 ssize_t mod_gnutls_transport_write(gnutls_transport_ptr_t ptr,
     694ssize_t mgs_transport_write(gnutls_transport_ptr_t ptr,
    695695                                   const void *buffer, size_t len)
    696696{
    697     mod_gnutls_handle_t *ctxt = ptr;
     697    mgs_handle_t *ctxt = ptr;
    698698
    699699    /* pass along the encrypted data
Note: See TracChangeset for help on using the changeset viewer.