<div dir="auto">Situation maybe a security issue<br><br><div data-smartmail="gmail_signature">Ryan Murray</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Jan 11, 2017 4:14 PM, "Ryan Murray" <<a href="mailto:rjkmurray40@gmail.com">rjkmurray40@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Could you give me a hand on a issue I've seem to of picked up with my device . You and the colleagues if possible. My SamsungGalaxy s2 tablet not responding.  Power button and display goes black and does not turn on for a period of time.  I believe the programs running in background or in a rooted format has been making the device malfunction. Is there a remote interface we could link up and establish what the heck is happening.  Lol<div dir="auto">Your truly</div><div dir="auto">Ryan<br><br><div data-smartmail="gmail_signature" dir="auto">Ryan Murray</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Jan 11, 2017 4:08 PM, "Nadia Lapkovskaya" <<a href="mailto:nadia@yaymedia.com" target="_blank">nadia@yaymedia.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
We are using openssl-1.0.2j. Noticed, that for http protocol everything is working fine, but when we are using our own binary protocol ssl_pending returns 0 all the time. We are using blocking socket. Tried with SSL_CTX_set_read_ahead set and unset.<br>
<br>
Out test server sends back any info received from the client.<br>
<br>
Test code looks like this:<br>
bool write(const uint64_t* data, int count)<br>
{<br>
  int rc = SSL_write(_ssl, data, count * sizeof(uint64_t));<br>
  return rc > 0 ? true : false;<br>
}<br>
<br>
bool read(uint64_t* data, int count)<br>
{<br>
  do {<br>
      int rc = SSL_read(_ssl, data, count * sizeof(uint64_t));<br>
      if (rc <= 0) {<br>
          int err = SSL_get_error(_ssl, rc);<br>
          std::string errs = ERR_error_string(err, nullptr);<br>
          return false;<br>
      }<br>
  } while (SSL_pending(_ssl));<br>
  return true;<br>
}<br>
<br>
During first ssl_read we received eight bytes, and after that ssl_pending returns 0. If we continue reading despite having no pending data, ssl_read returns the rest of the data.<br>
Could you please suggest what is wrong here.<br>
<br>
<br>
Best regards,<br>
Nadia.<br>
<br>
--<br>
openssl-users mailing list<br>
To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" rel="noreferrer" target="_blank">https://mta.openssl.org/mailma<wbr>n/listinfo/openssl-users</a><br>
</blockquote></div></div>
</blockquote></div></div>