Fossil SCM

Fix compiler warning of unused function for builds without OpenSSL.

drh 2022-01-26 14:36 trunk
Commit 2a563d60bf1fd816a52f9f049d4c91041c21936b2edcff4888f1cc00a0aa2e0c
1 file changed +2
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -876,10 +876,11 @@
876876
}
877877
}
878878
879879
#endif /* FOSSIL_ENABLE_SSL */
880880
881
+#ifdef FOSSIL_ENABLE_SSL
881882
/*
882883
** zPath is a name that might be a file or directory containing a trust
883884
** store. *pzStore is the name of the trust store to actually use.
884885
**
885886
** If *pzStore is not NULL (meaning no trust store has been found yet)
@@ -887,10 +888,11 @@
887888
*/
888889
static void trust_location_usable(const char *zPath, const char **pzStore){
889890
if( *pzStore!=0 ) return;
890891
if( file_isdir(zPath, ExtFILE)>0 ) *pzStore = zPath;
891892
}
893
+#endif /* FOSSIL_ENABLE_SSL */
892894
893895
/*
894896
** COMMAND: tls-config*
895897
** COMMAND: ssl-config
896898
**
897899
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -876,10 +876,11 @@
876 }
877 }
878
879 #endif /* FOSSIL_ENABLE_SSL */
880
 
881 /*
882 ** zPath is a name that might be a file or directory containing a trust
883 ** store. *pzStore is the name of the trust store to actually use.
884 **
885 ** If *pzStore is not NULL (meaning no trust store has been found yet)
@@ -887,10 +888,11 @@
887 */
888 static void trust_location_usable(const char *zPath, const char **pzStore){
889 if( *pzStore!=0 ) return;
890 if( file_isdir(zPath, ExtFILE)>0 ) *pzStore = zPath;
891 }
 
892
893 /*
894 ** COMMAND: tls-config*
895 ** COMMAND: ssl-config
896 **
897
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -876,10 +876,11 @@
876 }
877 }
878
879 #endif /* FOSSIL_ENABLE_SSL */
880
881 #ifdef FOSSIL_ENABLE_SSL
882 /*
883 ** zPath is a name that might be a file or directory containing a trust
884 ** store. *pzStore is the name of the trust store to actually use.
885 **
886 ** If *pzStore is not NULL (meaning no trust store has been found yet)
@@ -887,10 +888,11 @@
888 */
889 static void trust_location_usable(const char *zPath, const char **pzStore){
890 if( *pzStore!=0 ) return;
891 if( file_isdir(zPath, ExtFILE)>0 ) *pzStore = zPath;
892 }
893 #endif /* FOSSIL_ENABLE_SSL */
894
895 /*
896 ** COMMAND: tls-config*
897 ** COMMAND: ssl-config
898 **
899

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button