- Added possibility to configure baresip a TLS certificate and
CA certificates.
This commit is contained in:
@@ -50,7 +50,6 @@ object Utils {
|
||||
e.toString())
|
||||
return "Failed"
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -321,6 +320,10 @@ object Utils {
|
||||
}
|
||||
}
|
||||
|
||||
fun checkPermission(ctx: Context, permission: String) : Boolean {
|
||||
return ContextCompat.checkSelfPermission(ctx, permission) == PackageManager.PERMISSION_GRANTED
|
||||
}
|
||||
|
||||
fun requestPermission(ctx: Context, permission: String) : Boolean {
|
||||
if (ContextCompat.checkSelfPermission(ctx, permission) != PackageManager.PERMISSION_GRANTED) {
|
||||
Log.w("Baresip", "Baresip does not have $permission permission")
|
||||
|
||||
Reference in New Issue
Block a user