<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel about="http://permalink.gmane.org/gmane.network.gnutls.general">
    <title>gmane.network.gnutls.general</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.gnutls.general/1336"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.gnutls.general/1335"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.gnutls.general/1334"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.gnutls.general/1333"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.gnutls.general/1332"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.gnutls.general/1331"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.gnutls.general/1330"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.gnutls.general/1329"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.gnutls.general/1328"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.gnutls.general/1327"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.gnutls.general/1326"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.gnutls.general/1325"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.gnutls.general/1324"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.gnutls.general/1323"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.gnutls.general/1322"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.gnutls.general/1321"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.gnutls.general/1320"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.gnutls.general/1319"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.gnutls.general/1318"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.network.gnutls.general/1317"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1336">
    <title>Re: NSS info for the comparison table</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1336</link>
    <description>

Hi!  Thanks for the pointer, I updated the page slightly.  More
suggestions are welcome.

The page should probably be moved to a wiki page so everyone can edit
it...

/Simon
</description>
    <dc:creator>Simon Josefsson</dc:creator>
    <dc:date>2008-08-29T15:22:16</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1335">
    <title>Re: GNUTLS ERROR: A TLS packet with unexpected lengthwas received.</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1335</link>
    <description>_______________________________________________
Help-gnutls mailing list
Help-gnutls&lt; at &gt;gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnutls
</description>
    <dc:creator>John Brooks</dc:creator>
    <dc:date>2008-08-27T10:55:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1334">
    <title>Re: GNUTLS ERROR: A TLS packet with unexpected lengthwas received.</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1334</link>
    <description>
...

That was an unrelated problem: I've fixed the debug message to be
somewhat more correct.


That seems strange, I'm not sure why that happens.  Do you get this
error on the successful connections too?


If you decode the received 5 bytes of data, you'll see that it says
'ERROR'.  Thus, the server is not talking TLS any more, but instead sent
you an unencrypted 'ERROR' message.

Presumably the server's TLS library failed, and the server didn't know
what to do.

It would help if you could debug things on the server side as well.

Things to try is to disable all TLS extensions and enable compatibility
hacks.  Try

gnutls-cli --priority NORMAL:%COMPAT

And then disable more things too.

/Simon
</description>
    <dc:creator>Simon Josefsson</dc:creator>
    <dc:date>2008-08-27T10:35:10</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1333">
    <title>GNUTLS ERROR: A TLS packet with unexpected length wasreceived.</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1333</link>
    <description>|&lt;3&gt;| HSK[9b5be8]: Keeping ciphersuite: DHE_RSA_AES_128_CBC_SHA1
|&lt;3&gt;| HSK[9b5be8]: Keeping ciphersuite: DHE_RSA_CAMELLIA_128_CBC_SHA1
|&lt;3&gt;| HSK[9b5be8]: Keeping ciphersuite: DHE_RSA_AES_256_CBC_SHA1
|&lt;3&gt;| HSK[9b5be8]: Keeping ciphersuite: DHE_RSA_CAMELLIA_256_CBC_SHA1
|&lt;3&gt;| HSK[9b5be8]: Keeping ciphersuite: DHE_RSA_3DES_EDE_CBC_SHA1
|&lt;3&gt;| HSK[9b5be8]: Keeping ciphersuite: DHE_DSS_AES_128_CBC_SHA1
|&lt;3&gt;| HSK[9b5be8]: Keeping ciphersuite: DHE_DSS_CAMELLIA_128_CBC_SHA1
|&lt;3&gt;| HSK[9b5be8]: Keeping ciphersuite: DHE_DSS_AES_256_CBC_SHA1
|&lt;3&gt;| HSK[9b5be8]: Keeping ciphersuite: DHE_DSS_CAMELLIA_256_CBC_SHA1
|&lt;3&gt;| HSK[9b5be8]: Keeping ciphersuite: DHE_DSS_3DES_EDE_CBC_SHA1
|&lt;3&gt;| HSK[9b5be8]: Keeping ciphersuite: DHE_DSS_ARCFOUR_SHA1
|&lt;3&gt;| HSK[9b5be8]: Keeping ciphersuite: DHE_PSK_SHA_AES_128_CBC_SHA1
|&lt;3&gt;| HSK[9b5be8]: Keeping ciphersuite: DHE_PSK_SHA_AES_256_CBC_SHA1
|&lt;3&gt;| HSK[9b5be8]: Keeping ciphersuite: DHE_PSK_SHA_3DES_EDE_CBC_SHA1
|&lt;3&gt;| HSK[9b5be8]: Keeping ciphersuite: DHE_PSK_SHA_ARCFOUR_SHA1
|&lt;</description>
    <dc:creator>darkdemun</dc:creator>
    <dc:date>2008-08-26T23:01:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1332">
    <title>Re: support for ssl3.0 connection</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1332</link>
    <description>
I had trouble getting a python client to connect and I wasn't sure if it
didn't support tls and thought that perhaps if I changed the connection
to do just SSL 3.0 that it might work. I have since got it working. And,
the method for selecting different options makes more sense to me now.

brian


</description>
    <dc:creator>Brian Lavender</dc:creator>
    <dc:date>2008-08-24T01:59:49</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1331">
    <title>Re: support for ssl3.0 connection</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1331</link>
    <description>

I don't think it is possible to attempt SSL 3.0 before TLS 1.0: the
highest mutually supported version number will be used.  If both systems
support SSL 3.0, TLS 1.0 and TLS 1.1, the only way to negotiate SSL 3.0
is to disable TLS 1.0 and TLS 1.1.

To disable TLS 1.0 and TLS 1.1 (which are both enabled by default)
you'll want to use a priority string like:

NORMAL:-VERS-TLS1.0:-VERS-TLS1.1

/Simon
</description>
    <dc:creator>Simon Josefsson</dc:creator>
    <dc:date>2008-08-20T14:42:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1330">
    <title>support for ssl3.0 connection</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1330</link>
    <description>Thanks for the feedback on the previous questions.

I am looking at the docs for selecting different protocols and different
ciphersuites. I would like my server connection to attempt ssl3.0 first.
I see the command gnutls_priority_init, but I am a little unsure how to 
tell it to attempt ssl3.0 first. What sort of string should I use for
the command?

char *error_loc;

gnutls_priority_init(&amp;priority_cache, "NORMAL:SSL3.0",**error_loc)


brian
</description>
    <dc:creator>Brian Lavender</dc:creator>
    <dc:date>2008-08-20T06:40:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1329">
    <title>Re: Equivalent to fdopen?</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1329</link>
    <description>

Right, and since it would be good to avoid thread stuff in libgnutls, I
think it cannot be made part of libgnutls.  But if someone wants to
provide code for this, putting it in a libgnutls-stream library or
similar could be done, and may be useful.

I suspect rewriting code to use normal read+write instead of buffered f*
function is simpler and more reliable though.  TLS has some semantic
differences compared to network streams that may be difficult to
simulate (e.g., re-handshakes and alert messages).

/Simon
</description>
    <dc:creator>Simon Josefsson</dc:creator>
    <dc:date>2008-08-18T23:11:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1328">
    <title>Re: Re: Equivalent to fdopen?</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1328</link>
    <description>* Simon Josefsson:


You could use socketpair() and threads.  But it's certainly not a nice
approach.

</description>
    <dc:creator>Florian Weimer</dc:creator>
    <dc:date>2008-08-18T08:21:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1327">
    <title>Re: Can you assign a gnutls_session_t from one variableto another?</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1327</link>
    <description>
It is just a pointer so you can do it.
</description>
    <dc:creator>Nikos Mavrogiannopoulos</dc:creator>
    <dc:date>2008-08-16T22:32:44</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1326">
    <title>Can you assign a gnutls_session_t from one variableto another?</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1326</link>
    <description>Dumb question. Can you assign a gnutls_session_t from one variable to
another?

Say I have the following. What is the implication?

gnutls_session_t a;
gnutls_session_t b;

// create socket accept sock_fd

a = initialize_tls_session ();
gnutls_transport_set_ptr (a, (gnutls_transport_ptr_t) sock_fd );

b = a;

ret = gnutls_record_recv(b, &amp;bufferIn.data[bufferIn.index], bufferIn.remaining);

gnutls_bye (b, GNUTLS_SHUT_WR);
gnutls_deinit (b);

brian
</description>
    <dc:creator>Brian Lavender</dc:creator>
    <dc:date>2008-08-16T03:26:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1325">
    <title>Re: Equivalent to fdopen?</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1325</link>
    <description>

There is no such equivalent now.  If it is possible to implement it, it
would be a cool feature.  But is it possible to implement it?  I dunno.
Seems like you need some hooks into the f* buffering structures used by
libc.  It doesn't sound trivial to do.

/Simon
</description>
    <dc:creator>Simon Josefsson</dc:creator>
    <dc:date>2008-08-14T08:24:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1324">
    <title>Re: Equivalent to fdopen?</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1324</link>
    <description>
Ok, thanks. I thought maybe I was overlooking something. I ended up
creating a buffer, reading into it, and then looking for a newline in it.

brian
</description>
    <dc:creator>Brian Lavender</dc:creator>
    <dc:date>2008-08-13T18:30:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1323">
    <title>Re: Export restrictions</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1323</link>
    <description>

Right now it isn't possible to disable AES/3DES/RC4-128, but if you
write the patch to do add the proper --disable-foo flags, we can
consider adding it.  Just look at the example of Camellia.

I'm not sure you'll be able to use GnuTLS for anything useful with &lt;= 56
bit security though -- many sites on the Internet requires more.

/Simon
</description>
    <dc:creator>Simon Josefsson</dc:creator>
    <dc:date>2008-08-12T11:30:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1322">
    <title>Export restrictions</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1322</link>
    <description>Hello all,

  Living in a country where export regulations makes it so that nothing
can be shipped that's above 56 bits, I'd like to know if that path was
once taken by any gnutls user and if so, if there are any compile
recipes out there that would limit to DES (only DES, not 3DES !).

  Any comments/suggestions/hints appreciated.

Cheers.
</description>
    <dc:creator>lanas</dc:creator>
    <dc:date>2008-08-11T23:27:31</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1321">
    <title>Re: Equivalent to fdopen?</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1321</link>
    <description>
Isn't this the expected behavior? gnutls does not know about FILE*
pointers, only about descriptors. You'd need a wrapper over
gnutls_record_recv for that.

regards,
Nikos
</description>
    <dc:creator>Nikos Mavrogiannopoulos</dc:creator>
    <dc:date>2008-08-09T09:39:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1320">
    <title>Re: [SPAM]  Re: TLS and SCTP</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1320</link>
    <description>Thank you for reply.

I have continued this thread on the gnutls-devel mailing-list.

Sebastien.


</description>
    <dc:creator>Sebastien Decugis</dc:creator>
    <dc:date>2008-08-04T01:17:32</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1319">
    <title>Equivalent to fdopen?</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1319</link>
    <description>I am trying to take a simple socket program and convert it to use
gnutls. Is there an equivalent to fdopen so I can stream my secured
socket as an fstream?

int sock_fd;
FILE *sock_fpi;

sock_fd = accept( sock_id, (struct sockaddr *) &amp;sa_cli, &amp;client_len );

sock_fpi = fdopen( sock_fd, "r" ))

But when I attempt to convert it to use gnutls, I run into the
following.

sock_fd = accept( sock_id, (struct sockaddr *) &amp;sa_cli, &amp;client_len );

session = initialize_tls_session ();

gnutls_transport_set_ptr (session, (gnutls_transport_ptr_t) sock_fd );

ret = gnutls_handshake (session);

And, it appears that I can only read using the following command.

ret = gnutls_record_recv (session, buffer, MAX_BUF);

Any sugguestions? Is there an fdopen equivalent, so I can still use the
fgets and friends? Or, do I have to write my own buffering routine?

brian


#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;

#include &lt;unistd.h&gt;
#include &lt;sys/types.h&gt;
#include &lt;sys/socket.h&gt;
#include &lt;netinet/in.h&gt;
#include &lt;netdb.h&gt;
#include &lt;time.h</description>
    <dc:creator>Brian Lavender</dc:creator>
    <dc:date>2008-08-03T21:11:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1318">
    <title>Re: X.509 certificates around JUST A PUBLIC key... canit be done?</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1318</link>
    <description>Hate to tell you this, but I managed to wrangle it to working the way  
I described using three datum structs, one filled with junk, and  
gnutls_x509_privkey_rsa_raw. Which I then set onto the cert directly.  
Worked like a charm. Since the certificate set_key function only ever  
imports the public exponent and modulus anyway. :)

Thanks for the help though :)

On Aug 2, 2008, at 3:06 AM, Nikos Mavrogiannopoulos &lt;nmav&lt; at &gt;gnutls.org&gt;  
wrote:

</description>
    <dc:creator>Zach C.</dc:creator>
    <dc:date>2008-08-02T15:16:57</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1317">
    <title>Re: X.509 certificates around JUST A PUBLIC key...can it be done?</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1317</link>
    <description>
Actually I sketched a function like that. I'd appreciate if you could
try if it fits your needs.

regards,
Nikos
diff --git a/lib/x509/crq.c b/lib/x509/crq.c
index ff73c40..2eac706 100644
--- a/lib/x509/crq.c
+++ b/lib/x509/crq.c
&lt; at &gt;&lt; at &gt; -678,6 +678,74 &lt; at &gt;&lt; at &gt; gnutls_x509_crq_set_key (gnutls_x509_crq_t crq, gnutls_x509_privkey_t key)
 }
 
 /**
+  * gnutls_x509_crq_set_key_rsa_raw - This function will associate the Certificate request with a key
+  * &lt; at &gt;crq: should contain a gnutls_x509_crq_t structure
+  * &lt; at &gt;m: holds the modulus
+  * &lt; at &gt;e: holds the public exponent
+  *
+  * This function will set the public parameters from the given private key to the
+  * request. Only RSA keys are currently supported.
+  *
+  * Returns: On success, %GNUTLS_E_SUCCESS is returned, otherwise a
+  *   negative error value.
+  *
+  **/
+int
+gnutls_x509_crq_set_key_rsa_raw (gnutls_x509_crq_t crq, 
+    const gnutls_datum_t * m,
+    const gnutls_datum_t * e)
+{
+  int result, ret;
+  size_t siz = 0;
+  bigint_t temp_params[RSA_PUBLI</description>
    <dc:creator>Nikos Mavrogiannopoulos</dc:creator>
    <dc:date>2008-08-02T09:06:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.network.gnutls.general/1316">
    <title>Re: X.509 certificates around JUST A PUBLIC key...can it be done?</title>
    <link>http://permalink.gmane.org/gmane.network.gnutls.general/1316</link>
    <description>

It could work but I'm not sure since it was never designed to be like
this. The best way would be to try it and see if it works. As I see it
the best way for this to work would be to have a
gnutls_crq_import_key_raw() that would create a certificate request with
these parameters and then you could create a certificate using this
request. It is already in my todo list.

regards,
Nikos
</description>
    <dc:creator>Nikos Mavrogiannopoulos</dc:creator>
    <dc:date>2008-08-02T08:37:57</dc:date>
  </item>
  <textinput about="http://search.gmane.org/?group=$group=gmane.network.gnutls.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.network.gnutls.general</link>
  </textinput>
</rdf:RDF>
