<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>

<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>

<style>img {
max-width: 100%; height: auto;
}
body {
font-size: 0.875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style='font-size: inherit; -webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";'>
<div class="content">

<p class="details" style="font-style: italic; color: #666;">
<a href="https://gitlab.com/robertcelliott" style="color: #1068bf;">Robert Elliott</a> created an issue: <a href="https://gitlab.com/gnutls/gnutls/-/issues/1399" style="color: #1068bf;">#1399</a>
</p>
<div class="md" style="color: #303030; word-wrap: break-word;">
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: 0.3em; border-bottom-width: 1px; border-bottom-color: #eaeaea; border-bottom-style: solid; color: #303030; margin: 0 0 16px;" align="initial">
<a id="user-content-description-of-the-feature" class="anchor" href="#description-of-the-feature" aria-hidden="true" style="color: #1068bf; margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Description of the feature:</h2>
<p dir="auto" style="color: #303030; margin: 0 0 16px;" align="initial">The default location of the system configuration file is a compile-time choice specified in the Makefile. There is no command reporting this information to the user, though.</p>
<p dir="auto" style="color: #303030; margin: 0 0 16px;" align="initial">The gnutls_get_system_config_file() function returns the active value (which might be overridden by the GNUTLS_SYSTEM_PRIORITY_FILE environment variable), but there is no CLI command that reports that information.</p>
<p dir="auto" style="color: #303030; margin: 0 0 16px;" align="initial">Suggestions:</p>
<ol dir="auto" style="text-align: initial; margin: 0 0 16px; padding: 0;">
<li style="margin-top: 0; line-height: 1.6em; margin-left: 25px; padding-left: 3px;">add the compiled-in directory location to:</li>
</ol>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="" v-pre="true" style='display: block; font-size: 13px; color: #303030; line-height: 1.6em; overflow-x: auto; border-radius: 2px; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; margin: 0 0 16px; padding: 12px; border: 1px solid #dbdbdb;'><code style='font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: 4px; white-space: pre; margin-top: 0; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">$ gnutls-cli --list-config</span>
<span id="LC2" class="line" lang="plaintext">libgnutls-soname: libgnutls.so.30</span>
<span id="LC3" class="line" lang="plaintext">libnettle-soname: libnettle.so.8</span>
<span id="LC4" class="line" lang="plaintext">libhogweed-soname: libhogweed.so.6</span>
<span id="LC5" class="line" lang="plaintext">libgmp-soname: libgmp.so.10</span>
<span id="LC6" class="line" lang="plaintext">hardware-features: padlock pkcs11</span>
<span id="LC7" class="line" lang="plaintext">tls-features: ssl2-compat srtp alpn ocsp srp psk dhe ecdhe auth-anon heartbeat</span>
<span id="LC8" class="line" lang="plaintext">default-system-config-file: /path/to/gnutls.config</span>
<span id="LC9" class="line" lang="plaintext">## Applications that this feature may be relevant to:</span>
<span id="LC10" class="line" lang="plaintext">gnutls-cli</span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto" style="color: #303030; margin: 0 0 16px;" align="initial">That can be done by adding one line to this array:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="" v-pre="true" style='display: block; font-size: 13px; color: #303030; line-height: 1.6em; overflow-x: auto; border-radius: 2px; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; margin: 0 0 16px; padding: 12px; border: 1px solid #dbdbdb;'><code style='font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: 4px; white-space: pre; margin-top: 0; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">static const struct gnutls_library_config_st _gnutls_library_config[] = {</span>
<span id="LC2" class="line" lang="plaintext">#ifdef FIPS_MODULE_NAME</span>
<span id="LC3" class="line" lang="plaintext">        { "fips-module-name", FIPS_MODULE_NAME },</span>
<span id="LC4" class="line" lang="plaintext">#endif</span>
<span id="LC5" class="line" lang="plaintext">#ifdef FIPS_MODULE_VERSION</span>
<span id="LC6" class="line" lang="plaintext">        { "fips-module-version", FIPS_MODULE_VERSION },</span>
<span id="LC7" class="line" lang="plaintext">#endif</span>
<span id="LC8" class="line" lang="plaintext">        { "libgnutls-soname", GNUTLS_LIBRARY_SONAME },</span>
<span id="LC9" class="line" lang="plaintext">        { "libnettle-soname", NETTLE_LIBRARY_SONAME },</span>
<span id="LC10" class="line" lang="plaintext">        { "libhogweed-soname", HOGWEED_LIBRARY_SONAME },</span>
<span id="LC11" class="line" lang="plaintext">        { "libgmp-soname", GMP_LIBRARY_SONAME },</span>
<span id="LC12" class="line" lang="plaintext">        { "hardware-features", HW_FEATURES },</span>
<span id="LC13" class="line" lang="plaintext">        { "tls-features", TLS_FEATURES },</span>
<span id="LC14" class="line" lang="plaintext">        { "default-system-config", SYSTEM_PRIORITY_FILE },</span>
<span id="LC15" class="line" lang="plaintext">        { NULL, NULL }</span>
<span id="LC16" class="line" lang="plaintext">};</span></code></pre>
<copy-code></copy-code>
</div>
<ol start="2" dir="auto" style="text-align: initial; margin: 0 0 16px; padding: 0;">
<li style="margin-top: 0; line-height: 1.6em; margin-left: 25px; padding-left: 3px;">Add a command reporting the active value (i.e., the results of
gnutls_get_system_config_file(), maybe:</li>
</ol>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="" v-pre="true" style='display: block; font-size: 13px; color: #303030; line-height: 1.6em; overflow-x: auto; border-radius: 2px; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; margin: 0 0 16px; padding: 12px; border: 1px solid #dbdbdb;'><code style='font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: 4px; white-space: pre; margin-top: 0; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">$ gnutls --list-config-file</span>
<span id="LC2" class="line" lang="plaintext">GNUTLS_SYSTEM_PRIORITY_FILE: "/path/to/gnutls.config"</span></code></pre>
<copy-code></copy-code>
</div>
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: 0.3em; border-bottom-width: 1px; border-bottom-color: #eaeaea; border-bottom-style: solid; color: #303030; margin: 24px 0 16px;" align="initial">
<a id="user-content-is-this-feature-implemented-in-other-libraries-and-which" class="anchor" href="#is-this-feature-implemented-in-other-libraries-and-which" aria-hidden="true" style="color: #1068bf; margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Is this feature implemented in other libraries (and which)</h2>
<p dir="auto" style="color: #303030; margin: 0 0 16px;" align="initial">A similar command in OpenSSL is</p>
<div class="gl-relative markdown-code-block js-markdown-code" style="margin-bottom: 0;">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="" v-pre="true" style='display: block; font-size: 13px; color: #303030; line-height: 1.6em; overflow-x: auto; border-radius: 2px; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; margin: 0 0 16px; padding: 12px; border: 1px solid #dbdbdb;'><code style='font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: 4px; white-space: pre; margin-top: 0; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">$ openssl version -d</span>
<span id="LC2" class="line" lang="plaintext">OPENSSLDIR: "/etc/pki/tls"</span></code></pre>
<copy-code></copy-code>
</div>
</div>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #666;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1399" style="color: #1068bf;">view it on GitLab</a>.
<br>
You're receiving this email because of your account on <a target="_blank" rel="noopener noreferrer" href="https://gitlab.com" style="color: #1068bf;">gitlab.com</a>. <a href="https://gitlab.com/-/sent_notifications/b3eeab916f2265abc2cba8abc308f221/unsubscribe" target="_blank" rel="noopener noreferrer" style="color: #1068bf;">Unsubscribe</a> from this thread · <a href="https://gitlab.com/-/profile/notifications" target="_blank" rel="noopener noreferrer" class="mng-notif-link" style="color: #1068bf;">Manage all notifications</a> · <a href="https://gitlab.com/help" target="_blank" rel="noopener noreferrer" class="help-link" style="color: #1068bf;">Help</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/-/issues/1399"}}</script>


</p>
</div>
</body>
</html>