srtp_compat.h 1.1 KB

1234567891011121314151617181920212223242526272829
  1. #ifndef AST_SRTP_COMPAT_H
  2. #define AST_SRTP_COMPAT_H
  3. /* Compatibility for libsrtp 2.x */
  4. #define crypto_policy_t srtp_crypto_policy_t
  5. #define AES_128_ICM 1
  6. #define HMAC_SHA1 3
  7. #define err_status_t srtp_err_status_t
  8. #define err_status_ok srtp_err_status_ok
  9. #define err_status_fail srtp_err_status_fail
  10. #define err_status_bad_param srtp_err_status_bad_param
  11. #define err_status_alloc_fail srtp_err_status_alloc_fail
  12. #define err_status_dealloc_fail srtp_err_status_dealloc_fail
  13. #define err_status_init_fail srtp_err_status_init_fail
  14. #define err_status_terminus srtp_err_status_terminus
  15. #define err_status_auth_fail srtp_err_status_auth_fail
  16. #define err_status_cipher_fail srtp_err_status_cipher_fail
  17. #define err_status_replay_fail srtp_err_status_replay_fail
  18. #define err_status_replay_old srtp_err_status_replay_old
  19. #define err_status_algo_fail srtp_err_status_algo_fail
  20. #define err_status_no_such_op srtp_err_status_no_such_op
  21. #define err_status_no_ctx srtp_err_status_no_ctx
  22. #define err_status_cant_check srtp_err_status_cant_check
  23. #define err_status_key_expired srtp_err_status_key_expired
  24. #endif /* AST_SRTP_COMPAT_H */