Changeset 32103


Ignore:
Timestamp:
May 19, 2017, 8:38:58 AM (9 days ago)
Author:
brainslayer
Message:

make cryptodev usage optional for testing, enable it by setting use_crypto to 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/services/services/openvpn.c

    r31560 r32103  
    280280        eval("ln", "-s", "/usr/sbin/openvpn", "/tmp/openvpnserver");
    281281
    282         if (nvram_matchi("use_crypto", 1))
     282        if (nvram_matchi("use_crypto", 1)) {
     283                insmod("cryptodev");
    283284                eval("/tmp/openvpnserver", "--config", "/tmp/openvpn/openvpn.conf", "--route-up", "/tmp/openvpn/route-up.sh", "--route-pre-down", "/tmp/openvpn/route-down.sh", "--daemon", "--engine", "cryptodev");
    284         else
     285
     286        } else {
     287                rmmod("cryptodev");
    285288                eval("/tmp/openvpnserver", "--config", "/tmp/openvpn/openvpn.conf", "--route-up", "/tmp/openvpn/route-up.sh", "--route-pre-down", "/tmp/openvpn/route-down.sh", "--daemon");
     289        }
    286290
    287291//      eval("stopservice", "wshaper"); disable wshaper, causes fw race condition
Note: See TracChangeset for help on using the changeset viewer.