mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
merge from 2.0
This commit is contained in:
commit
815f2491a4
3 changed files with 11 additions and 2 deletions
|
@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
// current release version
|
||||
#define VERSION_MAJOR 3
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 212
|
||||
#define VERSION_REVISION 213
|
||||
|
||||
// generated by configure, only macros.
|
||||
#include <srs_auto_headers.hpp>
|
||||
|
|
|
@ -151,6 +151,11 @@ namespace _srs_internal
|
|||
}
|
||||
|
||||
SrsDH::~SrsDH()
|
||||
{
|
||||
close();
|
||||
}
|
||||
|
||||
void SrsDH::close()
|
||||
{
|
||||
if (pdh != NULL) {
|
||||
if (pdh->p != NULL) {
|
||||
|
@ -251,6 +256,8 @@ namespace _srs_internal
|
|||
|
||||
int32_t bits_count = 1024;
|
||||
|
||||
close();
|
||||
|
||||
//1. Create the DH
|
||||
if ((pdh = DH_new()) == NULL) {
|
||||
ret = ERROR_OpenSslCreateDH;
|
||||
|
|
|
@ -59,6 +59,8 @@ namespace _srs_internal
|
|||
public:
|
||||
SrsDH();
|
||||
virtual ~SrsDH();
|
||||
private:
|
||||
virtual void close();
|
||||
public:
|
||||
/**
|
||||
* initialize dh, generate the public and private key.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue