diff options
author | Anthony Neal <aneal@zeroc.com> | 2003-12-12 16:48:27 +0000 |
---|---|---|
committer | Anthony Neal <aneal@zeroc.com> | 2003-12-12 16:48:27 +0000 |
commit | 08c9a04f60fc6dd34c8c1508b0afb603e47d1f36 (patch) | |
tree | 17a638307333c15224e59db1446e339d852b5927 /cpp/src/IceSSL/OpenSSLUtils.cpp | |
parent | fixes (diff) | |
download | ice-08c9a04f60fc6dd34c8c1508b0afb603e47d1f36.tar.bz2 ice-08c9a04f60fc6dd34c8c1508b0afb603e47d1f36.tar.xz ice-08c9a04f60fc6dd34c8c1508b0afb603e47d1f36.zip |
Modifications made to:
Add additional cleanup processing on Plugin destruction.
Add IceSSL.MemoryDebug messages.
Diffstat (limited to 'cpp/src/IceSSL/OpenSSLUtils.cpp')
-rw-r--r-- | cpp/src/IceSSL/OpenSSLUtils.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/cpp/src/IceSSL/OpenSSLUtils.cpp b/cpp/src/IceSSL/OpenSSLUtils.cpp index f8fd7a2cd6c..04b7ae941a8 100644 --- a/cpp/src/IceSSL/OpenSSLUtils.cpp +++ b/cpp/src/IceSSL/OpenSSLUtils.cpp @@ -327,6 +327,7 @@ IceSSL::getTempDH(unsigned char* p, int plen, unsigned char* g, int glen) if((dh->p == 0) || (dh->g == 0)) { + // Note: Clears both p and g if they are not NULL. DH_free(dh); dh = 0; } @@ -338,33 +339,25 @@ IceSSL::getTempDH(unsigned char* p, int plen, unsigned char* g, int glen) DH* IceSSL::getTempDH512() { - DH* dh = getTempDH(dh512_p, (int) sizeof(dh512_p), dh512_g, (int) sizeof(dh512_g)); - - return dh; + return getTempDH(dh512_p, (int) sizeof(dh512_p), dh512_g, (int) sizeof(dh512_g)); } DH* IceSSL::getTempDH1024() { - DH* dh = getTempDH(dh1024_p, (int) sizeof(dh1024_p), dh1024_g, (int) sizeof(dh1024_g)); - - return dh; + return getTempDH(dh1024_p, (int) sizeof(dh1024_p), dh1024_g, (int) sizeof(dh1024_g)); } DH* IceSSL::getTempDH2048() { - DH* dh = getTempDH(dh2048_p, (int) sizeof(dh2048_p), dh2048_g, (int) sizeof(dh2048_g)); - - return dh; + return getTempDH(dh2048_p, (int) sizeof(dh2048_p), dh2048_g, (int) sizeof(dh2048_g)); } DH* IceSSL::getTempDH4096() { - DH* dh = getTempDH(dh4096_p, (int) sizeof(dh4096_p), dh4096_g, (int) sizeof(dh4096_g)); - - return dh; + return getTempDH(dh4096_p, (int) sizeof(dh4096_p), dh4096_g, (int) sizeof(dh4096_g)); } string |