Rename all public functions, types, and defines to begin with srtp_ prefix to comply with modern library coding convention.
diff --git a/crypto/rng/rand_source_ossl.c b/crypto/rng/rand_source_ossl.c
index 4bca6ac..56d138c 100644
--- a/crypto/rng/rand_source_ossl.c
+++ b/crypto/rng/rand_source_ossl.c
@@ -50,21 +50,21 @@
#include <openssl/rand.h>
-err_status_t rand_source_init (void)
+srtp_err_status_t rand_source_init (void)
{
- return err_status_ok;
+ return srtp_err_status_ok;
}
-err_status_t rand_source_get_octet_string (void *dest, uint32_t len)
+srtp_err_status_t rand_source_get_octet_string (void *dest, uint32_t len)
{
if (RAND_bytes(dest, len) == 1) {
- return err_status_ok;
+ return srtp_err_status_ok;
} else {
- return err_status_fail;
+ return srtp_err_status_fail;
}
}
-err_status_t rand_source_deinit (void)
+srtp_err_status_t rand_source_deinit (void)
{
- return err_status_ok;
+ return srtp_err_status_ok;
}