Changeset 485d28e in mod_gnutls for src


Ignore:
Timestamp:
Sep 19, 2011, 10:25:46 PM (12 years ago)
Author:
Dash Shendy <neuromancer@…>
Branches:
asyncio, debian/master, debian/stretch-backports, jessie-backports, main, master, msva, proxy-ticket, upstream
Children:
bb24ee8
Parents:
cac3a7f
Message:

Major Legacy Code Cleanup

Location:
src
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • src/Makefile.am

    rcac3a7f r485d28e  
    33libmod_gnutls_la_SOURCES = mod_gnutls.c gnutls_io.c gnutls_cache.c gnutls_config.c gnutls_hooks.c
    44#gnutls_lua.c
    5 libmod_gnutls_la_CFLAGS = -Wall ${MODULE_CFLAGS} ${LUA_CFLAGS}
    6 libmod_gnutls_la_LDFLAGS = -rpath ${AP_LIBEXECDIR} -module -avoid-version ${MODULE_LIBS} ${LUA_LIBS}
     5libmod_gnutls_la_CFLAGS = -Wall ${MODULE_CFLAGS}
     6libmod_gnutls_la_LDFLAGS = -rpath ${AP_LIBEXECDIR} -module -avoid-version ${MODULE_LIBS}
    77
    88lib_LTLIBRARIES = libmod_gnutls.la
     
    2323        @echo ""
    2424        @echo "   Please read the documentation at            "
    25         @echo "   http://www.outoforder.cc/ for   "
     25        @echo "   http://modgnutls.sourceforge.net/?p=docs for   "
    2626        @echo "   details on configuration of this module     "
    2727        @echo ""
  • src/gnutls_cache.c

    rcac3a7f r485d28e  
    221221        timeout = apr_time_sec(ctxt->sc->cache_timeout);
    222222
    223         rv = apr_memcache_set(mc, strkey, data.data, data.size, timeout,
     223        rv = apr_memcache_set(mc, strkey,(char *)data.data, data.size, timeout,
    224224                              0);
    225225
  • src/gnutls_io.c

    rcac3a7f r485d28e  
    539539}
    540540
     541static ssize_t write_flush(mgs_handle_t * ctxt)
     542{
     543        apr_bucket *e;
     544
     545        if (!(ctxt->output_blen || ctxt->output_length)) {
     546                ctxt->output_rc = APR_SUCCESS;
     547                return 1;
     548        }
     549
     550        if (ctxt->output_blen) {
     551                e = apr_bucket_transient_create(ctxt->output_buffer,
     552                                                ctxt->output_blen,
     553                                                ctxt->output_bb->
     554                                                bucket_alloc);
     555                /* we filled this buffer first so add it to the
     556 *               * head of the brigade
     557 *                               */
     558                APR_BRIGADE_INSERT_HEAD(ctxt->output_bb, e);
     559                ctxt->output_blen = 0;
     560        }
     561
     562        ctxt->output_length = 0;
     563        e = apr_bucket_flush_create(ctxt->output_bb->bucket_alloc);
     564        APR_BRIGADE_INSERT_TAIL(ctxt->output_bb, e);
     565
     566        ctxt->output_rc = ap_pass_brigade(ctxt->output_filter->next,
     567                                          ctxt->output_bb);
     568        /* clear the brigade to be ready for next time */
     569        apr_brigade_cleanup(ctxt->output_bb);
     570
     571        return (ctxt->output_rc == APR_SUCCESS) ? 1 : -1;
     572}
     573
    541574apr_status_t mgs_filter_output(ap_filter_t * f, apr_bucket_brigade * bb)
    542575{
     
    742775}
    743776
    744 
    745 static ssize_t write_flush(mgs_handle_t * ctxt)
    746 {
    747         apr_bucket *e;
    748 
    749         if (!(ctxt->output_blen || ctxt->output_length)) {
    750                 ctxt->output_rc = APR_SUCCESS;
    751                 return 1;
    752         }
    753 
    754         if (ctxt->output_blen) {
    755                 e = apr_bucket_transient_create(ctxt->output_buffer,
    756                                                 ctxt->output_blen,
    757                                                 ctxt->output_bb->
    758                                                 bucket_alloc);
    759                 /* we filled this buffer first so add it to the
    760                  * head of the brigade
    761                  */
    762                 APR_BRIGADE_INSERT_HEAD(ctxt->output_bb, e);
    763                 ctxt->output_blen = 0;
    764         }
    765 
    766         ctxt->output_length = 0;
    767         e = apr_bucket_flush_create(ctxt->output_bb->bucket_alloc);
    768         APR_BRIGADE_INSERT_TAIL(ctxt->output_bb, e);
    769 
    770         ctxt->output_rc = ap_pass_brigade(ctxt->output_filter->next,
    771                                           ctxt->output_bb);
    772         /* clear the brigade to be ready for next time */
    773         apr_brigade_cleanup(ctxt->output_bb);
    774 
    775         return (ctxt->output_rc == APR_SUCCESS) ? 1 : -1;
    776 }
    777 
    778777ssize_t mgs_transport_write(gnutls_transport_ptr_t ptr,
    779778                            const void *buffer, size_t len)
Note: See TracChangeset for help on using the changeset viewer.