From c9fba5cf3906e9d5eeada37896a2ce44f0f4a27d Mon Sep 17 00:00:00 2001
From: Chris Rienzo <chris@signalwire.com>
Date: Mon, 15 Nov 2021 13:18:29 -0500
Subject: [PATCH] [mod_sofia] Fix regression in RFC-8760. SHA-512/256 was not
 offered because OPENSSL_VERSION_NUMBER was not defined in sofia_reg.c

---
 src/mod/endpoints/mod_sofia/sofia_reg.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c
index ba9d4d0c71..10073c902d 100644
--- a/src/mod/endpoints/mod_sofia/sofia_reg.c
+++ b/src/mod/endpoints/mod_sofia/sofia_reg.c
@@ -1,6 +1,6 @@
 /*
  * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2005-2014, Anthony Minessale II <anthm@freeswitch.org>
+ * Copyright (C) 2005-2021, Anthony Minessale II <anthm@freeswitch.org>
  *
  * Version: MPL 1.1
  *
@@ -40,6 +40,7 @@
 #include "mod_sofia.h"
 #include "sofia-sip/hostdomain.h"
 #include "sip-dig.h"
+#include "switch_ssl.h"
 
 static void sofia_reg_new_handle(sofia_gateway_t *gateway_ptr, int attach)
 {