autoconf: Check for srtp_get_version_string() before using it

Change-Id: Id2a916ff9448706090e72ff2c7fb3f5ba24a05df
This commit is contained in:
Sean Bright
2018-09-17 11:38:28 -04:00
parent ad602bb2a8
commit 3d9deb35f0
5 changed files with 251 additions and 7 deletions

View File

@@ -1212,7 +1212,11 @@ static int res_srtp_init(void)
return -1;
}
#ifdef HAVE_SRTP_GET_VERSION
ast_verb(2, "%s initialized\n", srtp_get_version_string());
#else
ast_verb(2, "libsrtp initialized\n");
#endif
g_initialized = 1;
return 0;