<!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>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 style="color: #777777;">
<a href="https://gitlab.com/dwmw2" style="color: #1068bf; text-decoration: none;">David Woodhouse</a>
<a href="https://gitlab.com/gnutls/gnutls/-/issues/1365#note_951576931" style="color: #1068bf; text-decoration: none;">commented</a>:
</p>
<div class="md" style="color: #303030; word-wrap: break-word;">
<p dir="auto" style="color: #303030; margin: 0 0 16px;" align="initial">Hm, I have no idea what's going on there or what <code style='font-size: 90%; color: #1f1f1f; word-wrap: break-word; background-color: #f0f0f0; border-radius: 4px; margin-top: 0; font-weight: inherit; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 2px 4px;'>privkey_import_capi()</code> vs. <code style='font-size: 90%; color: #1f1f1f; word-wrap: break-word; background-color: #f0f0f0; border-radius: 4px; font-weight: inherit; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 2px 4px;'>privkey_import_ncrypt()</code> are but let's try this...</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-diff" lang="diff" 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="diff" style="margin-top: 0;"><span class="gd" style="margin-top: 0;">--- lib/system/keys-win.c.orig      2022-05-17 09:04:36.622836058 +0100</span></span>
<span id="LC2" class="line" lang="diff"><span class="gi" style="margin-top: 0;">+++ lib/system/keys-win.c 2022-05-18 17:21:19.367532552 +0100</span></span>
<span id="LC3" class="line" lang="diff"></span>
<span id="LC4" class="line" lang="diff">@@ -858,8 +858,8 @@ int _gnutls_privkey_import_system_url(gn</span>
<span id="LC5" class="line" lang="diff">            goto cleanup;</span>
<span id="LC6" class="line" lang="diff">    }</span>
<span id="LC7" class="line" lang="diff"> </span>
<span id="LC8" class="line" lang="diff"><span class="gd" style="margin-top: 0;">- r = pNCryptOpenStorageProvider(&sctx, kpi->pwszProvName, 0);</span></span>
<span id="LC9" class="line" lang="diff"><span class="gd" style="margin-top: 0;">- if (!FAILED(r)) {       /* if this works carry on with CNG */</span></span>
<span id="LC10" class="line" lang="diff"><span class="gi" style="margin-top: 0;">+        //r = pNCryptOpenStorageProvider(&sctx, kpi->pwszProvName, 0);</span></span>
<span id="LC11" class="line" lang="diff"><span class="gi" style="margin-top: 0;">+        if (0 && !FAILED(r)) {  /* if this works carry on with CNG */</span></span>
<span id="LC12" class="line" lang="diff"> </span>
<span id="LC13" class="line" lang="diff">           ret = privkey_import_ncrypt(pkey, url, priv, kpi, &sctx);</span>
<span id="LC14" class="line" lang="diff">           if (ret < 0) {</span>
<span id="LC15" class="line" lang="diff"></span></code></pre>
<copy-code></copy-code>
</div>
<ul dir="auto" style="text-align: initial; list-style-type: disc; margin: 0; padding: 0;">
<li style="margin-top: 0; line-height: 1.6em; margin-left: 25px; padding-left: 3px;">
<a href="http://david.woodhou.se/libgnutls-30.dll.local_machine-capi" rel="nofollow noreferrer noopener" target="_blank" style="color: #1068bf; margin-top: 0; text-decoration: none;">http://david.woodhou.se/libgnutls-30.dll.local_machine-capi</a> d30438ba40040feb01bb5c48c85c0cad81669978fce3615f74176d8337c8fa5c</li>
</ul>
</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/1365#note_951576931" style="color: #1068bf; text-decoration: none;">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/-/sent_notifications/60b77d0427fab64b55c1b5935cc4eeeb/unsubscribe" style="color: #1068bf; text-decoration: none;">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/-/issues/1365#note_951576931"}}</script>


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