• Guillaume Roguez's avatar
    Fix DhParams copy-assignment and copy-constructor · a17755c6
    Guillaume Roguez authored
    DhParams copy-assignement was implemented as non-op operator.
    This is weird for a copy to do nothing!
    No intends are indicated to help.
    Seems only done to help MSVC compiler, but this is WRONG
    and cause a SECURITY FAILURE as the DhParam is not set
    as supposed to be.
    Consequence observed on UWP daemon: the anonymous connection
    cannot be done and the certificate is always send in cleartext.
    
    The fix consists in using the dedicated gnutls API
    to copy correctly the internal dh_params C structure.
    This is used to implement copy-assignement and copy-constructor
    methods
    Reviewed-by: Andreas Traczyk's avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
    Change-Id: I49d3a3fd2c0a2ed5fde0bd251efbad589c830c70
    a17755c6
Name
Last commit
Last update
MSVC Loading commit data...
bin Loading commit data...
contrib Loading commit data...
doc Loading commit data...
docker Loading commit data...
extras/tools Loading commit data...
m4 Loading commit data...
man Loading commit data...
ringtones Loading commit data...
src Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitreview Loading commit data...
AUTHORS Loading commit data...
CODING Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
astylerc Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
globals.mk Loading commit data...