1
0
Fork 0
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:
winlin 2014-08-13 10:58:53 +08:00
parent aefcaa9683
commit 67ab0fb5e0

View file

@ -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;