mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +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.
|
||||
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) {
|
||||
//("Unable to copy key"); return ret;
|
||||
|
|
Loading…
Reference in a new issue