Fossil SCM
Fix compiler warning of unused function for builds without OpenSSL.
Commit
2a563d60bf1fd816a52f9f049d4c91041c21936b2edcff4888f1cc00a0aa2e0c
Parent
317c665ce6d548a…
1 file changed
+2
+2
| --- src/http_ssl.c | ||
| +++ src/http_ssl.c | ||
| @@ -876,10 +876,11 @@ | ||
| 876 | 876 | } |
| 877 | 877 | } |
| 878 | 878 | |
| 879 | 879 | #endif /* FOSSIL_ENABLE_SSL */ |
| 880 | 880 | |
| 881 | +#ifdef FOSSIL_ENABLE_SSL | |
| 881 | 882 | /* |
| 882 | 883 | ** zPath is a name that might be a file or directory containing a trust |
| 883 | 884 | ** store. *pzStore is the name of the trust store to actually use. |
| 884 | 885 | ** |
| 885 | 886 | ** If *pzStore is not NULL (meaning no trust store has been found yet) |
| @@ -887,10 +888,11 @@ | ||
| 887 | 888 | */ |
| 888 | 889 | static void trust_location_usable(const char *zPath, const char **pzStore){ |
| 889 | 890 | if( *pzStore!=0 ) return; |
| 890 | 891 | if( file_isdir(zPath, ExtFILE)>0 ) *pzStore = zPath; |
| 891 | 892 | } |
| 893 | +#endif /* FOSSIL_ENABLE_SSL */ | |
| 892 | 894 | |
| 893 | 895 | /* |
| 894 | 896 | ** COMMAND: tls-config* |
| 895 | 897 | ** COMMAND: ssl-config |
| 896 | 898 | ** |
| 897 | 899 |
| --- 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 |