<!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=utf-8" 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/prof_david">Elta Koepp</a>
commented on a discussion
on <a href="https://gitlab.com/gnutls/gnutls/merge_requests/963#note_157435252">lib/x509/ocsp.c</a>:
</p>
<table>
<tr class="line_holder" id="">
<td class="diff-line-num old_line" data-linenumber="2547" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
2547
</td>
<td class="diff-line-num new_line" data-linenumber="2552" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
2552
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC2552" class="line" lang="c">   <span class="kt" style="color: #458; font-weight: 600;">time_t</span> <span class="n" style="color: #333;">rtime</span><span class="p">,</span> <span class="n" style="color: #333;">vtime</span><span class="p">,</span> <span class="n" style="color: #333;">ntime</span><span class="p">,</span> <span class="n" style="color: #333;">now</span><span class="p">;</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="">
<td class="diff-line-num old_line" data-linenumber="2548" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
2548
</td>
<td class="diff-line-num new_line" data-linenumber="2553" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
2553
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC2553" class="line" lang="c">   <span class="kt" style="color: #458; font-weight: 600;">int</span> <span class="n" style="color: #333;">ret</span><span class="p">;</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="">
<td class="diff-line-num old_line" data-linenumber="2549" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
2549
</td>
<td class="diff-line-num new_line" data-linenumber="2554" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
2554
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC2554" class="line" lang="c"></span>
</pre>
</td>
</tr>
<tr class="line_holder new" id="">
<td class="diff-line-num new old_line" data-linenumber="2550" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
 
</td>
<td class="diff-line-num new new_line" data-linenumber="2555" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
2555
</td>
<td class="line_content new noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#ecfdf0">
<pre style="margin: 0;">+<span id="LC2555" class="line" lang="c">   <span class="k" style="font-weight: 600;">if</span> <span class="p">(</span><span class="n" style="color: #333;">resp</span> <span class="o" style="font-weight: 600;">==</span> <span class="nb" style="color: #0086b3;">NULL</span><span class="p">)</span> <span class="p">{</span></span>
</pre>
</td>
</tr>

</table>
<div style="">
<p dir="auto"><a href="https://gitlab.com/rockdaboot" data-user="267665" data-reference-type="user" data-container="body" data-placement="bottom" class="gfm gfm-project_member" title="Tim Rühsen">@rockdaboot</a> , this is a internal function and checked,</p>
<pre class="code highlight js-syntax-highlight c" lang="c" v-pre="true" style="background-color: #fff; font-family: monospace; font-size: 90%; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; color: #998; font-style: italic; margin: 0;"><code><span id="LC1" class="line" lang="c"><span class="k" style="font-weight: 600;">static</span> <span class="kt" style="color: #458; font-weight: 600;">int</span></span>
<span id="LC2" class="line" lang="c"><span class="nf" style="color: #900; font-weight: 600;">_ocsp_resp_verify_direct</span><span class="p">(</span><span class="n" style="color: #333;">gnutls_ocsp_resp_t</span> <span class="n" style="color: #333;">resp</span><span class="p">,</span></span>
<span id="LC3" class="line" lang="c">                        <span class="n" style="color: #333;">gnutls_x509_crt_t</span> <span class="n" style="color: #333;">signercert</span><span class="p">,</span></span>
<span id="LC4" class="line" lang="c">                        <span class="kt" style="color: #458; font-weight: 600;">unsigned</span> <span class="kt" style="color: #458; font-weight: 600;">int</span> <span class="o" style="font-weight: 600;">*</span><span class="n" style="color: #333;">verify</span><span class="p">,</span> <span class="kt" style="color: #458; font-weight: 600;">unsigned</span> <span class="kt" style="color: #458; font-weight: 600;">int</span> <span class="n" style="color: #333;">flags</span><span class="p">)</span></span>
<span id="LC5" class="line" lang="c"><span class="p">{</span></span>
<span id="LC6" class="line" lang="c">       <span class="p">...</span> <span class="n" style="color: #333;">SKIP</span></span>
<span id="LC7" class="line" lang="c"></span>
<span id="LC8" class="line" lang="c">       <span class="k" style="font-weight: 600;">if</span> <span class="p">(</span><span class="n" style="color: #333;">resp</span> <span class="o" style="font-weight: 600;">==</span> <span class="nb" style="color: #0086b3;">NULL</span> <span class="o" style="font-weight: 600;">||</span> <span class="n" style="color: #333;">signercert</span> <span class="o" style="font-weight: 600;">==</span> <span class="nb" style="color: #0086b3;">NULL</span><span class="p">)</span> <span class="p">{</span></span>
<span id="LC9" class="line" lang="c">               <span class="n" style="color: #333;">gnutls_assert</span><span class="p">();</span></span>
<span id="LC10" class="line" lang="c">              <span class="k" style="font-weight: 600;">return</span> <span class="n" style="color: #333;">GNUTLS_E_INVALID_REQUEST</span><span class="p">;</span></span>
<span id="LC11" class="line" lang="c">      <span class="p">}</span></span>
<span id="LC12" class="line" lang="c">       <span class="p">...</span> <span class="n" style="color: #333;">SKIP</span></span></code></pre>
</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/merge_requests/963#note_157435252">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/1c1de0f96a45ebee2528138cfcd63d6a/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 Merge request","url":"https://gitlab.com/gnutls/gnutls/merge_requests/963#note_157435252"}}</script>

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