<!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;
}
</style>
</head>
<body>
<div class="content">
<p style="color: #777777;">
<a href="https://gitlab.com/mbiberhofer">Mario Biberhofer</a>
commented on a
<a href="https://gitlab.com/gnutls/gnutls/issues/859#note_240646770">discussion</a>:
</p>
<div style="">
<blockquote dir="auto">
<p>int gnutls_ocsp_resp_set_responder_raw_id(gnutls_ocsp_resp_t resp, unsigned type, gnutls_datum_t raw); The third option it is more consistent with the rest of the API to be a pointer to datum_t.</p>
</blockquote>
<p dir="auto">All right, I'll change that.</p>
<blockquote dir="auto">
<p>gnutls_ocsp_resp_sign This sign function cannot handle RSA-PSS or changing signature algorithm (RSA-SHA256 vs RSA-SHA512). An update may be to be similar to gnutls_privkey_sign_hash2 and have as input the specific signature algorithm gnutls_sign_algorithm_t and flags.</p>
</blockquote>
<p dir="auto">Ah, I'll take a look at <code>gnutls_privkey_sign_hash2</code> then. Currently I expected the signature algorithm to be set using <code>gnutls_ocsp_resp_set_signature_algorithm</code> before calculating and appending the signature using <code>gnutls_ocsp_resp_sign</code> (it throws an error if the signature algorithm is not set in the given <code>gnutls_ocsp_resp_t</code> data)</p>
<p dir="auto">I guess I could remove <code>gnutls_ocsp_resp_set_signature_algorithm</code> and <code>gnutls_ocsp_resp_set_signature</code> from the public API then? Should I keep it for testing/toy purposes?</p>
</div>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/859#note_240646770">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/3f3bce2e9c34a0afc26abbc4821b259c/unsubscribe">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/859#note_240646770"}}</script>
</p>
</div>
</body>
</html>