mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add comments for openssl key generator assert.
This commit is contained in:
parent
aefcaa9683
commit
67ab0fb5e0
1 changed files with 3 additions and 1 deletions
|
@ -198,7 +198,9 @@ namespace _srs_internal
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy public key to bytes.
|
// copy public key to bytes.
|
||||||
srs_assert(BN_num_bytes(pdh->pub_key) == size);
|
// TODO: FIXME: please finger it out.
|
||||||
|
int32_t key_size = BN_num_bytes(pdh->pub_key);
|
||||||
|
srs_assert(key_size == size);
|
||||||
|
|
||||||
if (BN_bn2bin(pdh->pub_key, (unsigned char*)public_key) != size) {
|
if (BN_bn2bin(pdh->pub_key, (unsigned char*)public_key) != size) {
|
||||||
//("Unable to copy key"); return ret;
|
//("Unable to copy key"); return ret;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue