Changeset 84cb5b2 in mod_gnutls for src/gnutls_config.c


Ignore:
Timestamp:
May 17, 2005, 5:00:53 PM (15 years ago)
Author:
Paul Querna <chip@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
836c2f9
Parents:
836417f
Message:
  • add lua to do client verification
  • only use gcrypt locking when required to
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_config.c

    r836417f r84cb5b2  
    318318}
    319319
     320void *mgs_config_dir_merge(apr_pool_t *p, void *basev, void *addv)
     321{
     322    mgs_dirconf_rec *new;
     323    mgs_dirconf_rec *base = (mgs_dirconf_rec *) basev;
     324    mgs_dirconf_rec *add = (mgs_dirconf_rec *) addv;
     325   
     326    new = (mgs_dirconf_rec *) apr_pcalloc(p, sizeof(mgs_dirconf_rec));
     327    new->lua_bytecode = apr_pstrmemdup(p, add->lua_bytecode,
     328                                       add->lua_bytecode_len);
     329    new->lua_bytecode_len = add->lua_bytecode_len;
     330    new->client_verify_mode = add->client_verify_mode;
     331    return new;
     332}
     333
    320334void *mgs_config_dir_create(apr_pool_t *p, char *dir)
    321335{
     
    323337   
    324338    dc->client_verify_mode = -1;
    325    
     339    dc->lua_bytecode = NULL;
     340    dc->lua_bytecode_len = 0;
    326341    return dc;
    327342}
Note: See TracChangeset for help on using the changeset viewer.