| 1 |
/* |
| 2 |
* Common routine to find cacert.pem installed by tools/get-cacert. |
| 3 |
* This is used by system_cert_loader and Scm_TLSSystemCABundleAvailable. |
| 4 |
* |
| 5 |
* We can't consolidate it, for tls-mbed.c may be compiled into a separate |
| 6 |
* DLL, and it is cumbersome on Windows to do cross-DLL reference. |
| 7 |
*/ |
| 8 |
|
| 9 |
static const char *in_gauche_cacert_path() |
| 10 |
{ |
| 11 |
ScmObj path = Scm_StringAppendC(SCM_STRING(Scm_LibraryDirectory()), |
| 12 |
"/../cacert.pem", -1, -1); |
| 13 |
return Scm_GetStringConst(SCM_STRING(path)); |
| 14 |
} |