]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
ofcourse the +1 should also go
authorMiek Gieben <miekg@NLnetLabs.nl>
Thu, 19 May 2005 13:25:08 +0000 (13:25 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Thu, 19 May 2005 13:25:08 +0000 (13:25 +0000)
keys.c

diff --git a/keys.c b/keys.c
index c232df5febd0f22698f14d9a34d4e10e0ec760c2..010fe1ac9b07c42778063c184fc1fef77a821981 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -530,12 +530,8 @@ ldns_key_rsa2bin(unsigned char *data, RSA *k, uint16_t *size)
                 */
                 data[0] = (unsigned char) BN_num_bytes(k->e);
                 i = BN_bn2bin(k->e, data + 1);  
-               printf("Written %d\n", i);
                 j = BN_bn2bin(k->n, data + i + 1);
-               printf("Written %d\n", j);
-               /* *size = (uint16_t) BN_num_bytes(k->n) + 4; */
-               *size = (uint16_t) i + j + 1;
-               printf("size %d\n", *size);
+               *size = (uint16_t) i + j;
         } else if (BN_num_bytes(k->e) <= 16) {
                 data[0] = 0;
                /* XXX this writing is not endian save or is it? LOOK AT