Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

It is easier to change the specification to fit the program than vice versa.


devel / comp.lang.c++ / Re: OpenSSL (old) tutorial-style example programs ?

SubjectAuthor
* OpenSSL (old) tutorial-style example programs ?R.Wieser
+* Re: OpenSSL (old) tutorial-style example programs ?Paavo Helde
|+- Re: OpenSSL (old) tutorial-style example programs ?Paavo Helde
|+* Re: OpenSSL (old) tutorial-style example programs ?Muttley
||+* Re: OpenSSL (old) tutorial-style example programs ?R.Wieser
|||`- Re: OpenSSL (old) tutorial-style example programs ?Muttley
||`- Re: OpenSSL (old) tutorial-style example programs ?Paavo Helde
|`* Re: OpenSSL (old) tutorial-style example programs ?R.Wieser
| +* Re: OpenSSL (old) tutorial-style example programs ?Scott Lurndal
| |`- Re: OpenSSL (old) tutorial-style example programs ?Keith Thompson
| `* Re: OpenSSL (old) tutorial-style example programs ?Paavo Helde
|  `* Re: OpenSSL (old) tutorial-style example programs ?R.Wieser
|   `* Re: OpenSSL (old) tutorial-style example programs ?Paavo Helde
|    `* Re: OpenSSL (old) tutorial-style example programs ?R.Wieser
|     `* Re: OpenSSL (old) tutorial-style example programs ?Paavo Helde
|      `* Re: OpenSSL (old) tutorial-style example programs ?R.Wieser
|       +* Re: OpenSSL (old) tutorial-style example programs ?Paavo Helde
|       |`* Re: OpenSSL (old) tutorial-style example programs ?R.Wieser
|       | +* Re: OpenSSL (old) tutorial-style example programs ?Scott Lurndal
|       | |`* Re: OpenSSL (old) tutorial-style example programs ?R.Wieser
|       | | `* Re: OpenSSL (old) tutorial-style example programs ?Öö Tiib
|       | |  `- Re: OpenSSL (old) tutorial-style example programs ?Scott Lurndal
|       | `* Re: OpenSSL (old) tutorial-style example programs ?Paavo Helde
|       |  `* Re: OpenSSL (old) tutorial-style example programs ?R.Wieser
|       |   `* Re: OpenSSL (old) tutorial-style example programs ?Paavo Helde
|       |    `- Re: OpenSSL (old) tutorial-style example programs ?R.Wieser
|       `* Re: OpenSSL (old) tutorial-style example programs ?Scott Lurndal
|        `- Re: OpenSSL (old) tutorial-style example programs ?R.Wieser
`- Re: OpenSSL (old) tutorial-style example programs ?Pavel

Pages:12
Re: OpenSSL (old) tutorial-style example programs ?

<u50359$v6du$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=290&group=comp.lang.c%2B%2B#290

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: eesnimi@osa.pri.ee (Paavo Helde)
Newsgroups: comp.lang.c++
Subject: Re: OpenSSL (old) tutorial-style example programs ?
Date: Sun, 28 May 2023 20:31:21 +0300
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <u50359$v6du$1@dont-email.me>
References: <u4n3bk$3csb0$1@dont-email.me> <u4nk5a$3frh1$1@dont-email.me>
<u4o063$3icue$1@dont-email.me> <u4o4t4$3jo9r$1@dont-email.me>
<u4ocb6$3l0j9$1@dont-email.me> <u4oito$3m1bg$1@dont-email.me>
<u4pls3$3tkls$1@dont-email.me> <u4r567$332h$1@dont-email.me>
<u4sa6h$b8gp$1@dont-email.me> <u4scm3$bi8g$1@dont-email.me>
<u4t04t$e82q$1@dont-email.me> <u4t9sf$fi2i$1@dont-email.me>
<u4v2vk$pu2o$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 28 May 2023 17:31:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="222effcfe7cfc4ca917016e13eec2e03";
logging-data="1022398"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vkcB2rfQWJE5n8Z1JZkfLi2jM7lFCCqU="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.11.1
Cancel-Lock: sha1:RKy7oziwK/Rw63b2jYQgzIJrWqQ=
Content-Language: en-US
In-Reply-To: <u4v2vk$pu2o$3@dont-email.me>
 by: Paavo Helde - Sun, 28 May 2023 17:31 UTC

28.05.2023 11:21 R.Wieser kirjutas:
>>> Than again, did you know that "BIO_do_connect" is actually a #define of
>>> the
>>> command below it :
>>
>> My IDE tells me that whenever I'm inclined to be interested in such
>> things.
>
> And you're mostly not interested, as long as it works, right ? And by
> that missing that two, directly following each other functions seem to be
> doing the same thing ...
>
> I did notice, and am now wondering why. And if that should not have
> happened, how much I should trust the correctness of the rest of the code.
> :-(

I can tell you why. Openssl has long history and has tried to clean up
its SDK, probably multiple times. Alas, it appears by some reason people
do not want to modify their old code to use new cleaned-up interfaces
and insist on that the same client code which worked with e.g. openssl
0.9.8.0 (released 18 years ago) should still work with todays' version.
Hence, there are lots of #define-s to patch over the differences and to
make the old code compile. In particular, BIO_do_connect() is documented
in the bio.h header file as: "Aliases kept for backward compatibility."

Re: OpenSSL (old) tutorial-style example programs ?

<u506o5$vmu2$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=291&group=comp.lang.c%2B%2B#291

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.lang.c++
Subject: Re: OpenSSL (old) tutorial-style example programs ?
Date: Sun, 28 May 2023 20:32:29 +0200
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <u506o5$vmu2$1@dont-email.me>
References: <u4n3bk$3csb0$1@dont-email.me> <u4nk5a$3frh1$1@dont-email.me> <u4o063$3icue$1@dont-email.me> <u4o4t4$3jo9r$1@dont-email.me> <u4ocb6$3l0j9$1@dont-email.me> <u4oito$3m1bg$1@dont-email.me> <u4pls3$3tkls$1@dont-email.me> <u4r567$332h$1@dont-email.me> <u4sa6h$b8gp$1@dont-email.me> <u4scm3$bi8g$1@dont-email.me> <u4t04t$e82q$1@dont-email.me> <u4t9sf$fi2i$1@dont-email.me> <u4v2vk$pu2o$3@dont-email.me> <u50359$v6du$1@dont-email.me>
Injection-Date: Sun, 28 May 2023 18:32:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="674458ac5eb53040a4e0ffcb23180b52";
logging-data="1039298"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18gmVttI9X590jnbrdnYJu4pOTYvKO6CMi0uEkfRxOoKg=="
Cancel-Lock: sha1:VX0QfkzfhVE03BaUirh3q6CqsUI=
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
 by: R.Wieser - Sun, 28 May 2023 18:32 UTC

Paavo,

> I can tell you why.
....
> Hence, there are lots of #define-s to patch over the differences and to
> make the old code compile.

Thats not what I was talking about. What was is that there *two* the
identical connect calls in sequence. That isn't good (or should not be).

As for the #define's themselves ? I can understand that calling a function
named "connect" is a lot easier to remember than calling a "BIO_ctrl" one
with a BIO_C_DO_STATEMACHINE argument. Thats not the point.

... Though it does not help my poor brain that a function with "connect" in
its name doesn't do anything like it ...

Regards,
Rudy Wieser

Re: OpenSSL (old) tutorial-style example programs ?

<a67a6e3b-9c6a-44d5-882b-6422b32f5723n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=296&group=comp.lang.c%2B%2B#296

  copy link   Newsgroups: comp.lang.c++
X-Received: by 2002:a05:622a:1012:b0:3f7:fe6e:2083 with SMTP id d18-20020a05622a101200b003f7fe6e2083mr2515722qte.0.1685340130485;
Sun, 28 May 2023 23:02:10 -0700 (PDT)
X-Received: by 2002:a05:620a:3953:b0:746:9016:1eb0 with SMTP id
qs19-20020a05620a395300b0074690161eb0mr1704542qkn.2.1685340130268; Sun, 28
May 2023 23:02:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.neodome.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c++
Date: Sun, 28 May 2023 23:02:09 -0700 (PDT)
In-Reply-To: <u4v2vj$pu2o$2@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=145.14.29.178; posting-account=pysjKgkAAACLegAdYDFznkqjgx_7vlUK
NNTP-Posting-Host: 145.14.29.178
References: <u4n3bk$3csb0$1@dont-email.me> <u4nk5a$3frh1$1@dont-email.me>
<u4o063$3icue$1@dont-email.me> <u4o4t4$3jo9r$1@dont-email.me>
<u4ocb6$3l0j9$1@dont-email.me> <u4oito$3m1bg$1@dont-email.me>
<u4pls3$3tkls$1@dont-email.me> <u4r567$332h$1@dont-email.me>
<u4sa6h$b8gp$1@dont-email.me> <u4scm3$bi8g$1@dont-email.me>
<u4t04t$e82q$1@dont-email.me> <xMocM.254901$LAYb.188002@fx02.iad> <u4v2vj$pu2o$2@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a67a6e3b-9c6a-44d5-882b-6422b32f5723n@googlegroups.com>
Subject: Re: OpenSSL (old) tutorial-style example programs ?
From: ootiib@hot.ee (Öö Tiib)
Injection-Date: Mon, 29 May 2023 06:02:10 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2260
 by: Öö Tiib - Mon, 29 May 2023 06:02 UTC

On Sunday, 28 May 2023 at 11:24:18 UTC+3, R.Wieser wrote:
> Scott,
> >>... and those libeay32 and ssleay32DLLs /still/ have 3000+ functions in
> >>them. :-)
> >
> > Not surprising given that openssl is a general purpose cryptographic
> > toolkit,
> Ofcourse. That is why its called "OpenCrypt", and not "OpenSSL".
>
> Oh, wait ... :-p
>
It is OpenSSL made for Secure Sockets Layer. As that can't be made
without cryptography it has libcrypto in it. That libcrypto contains
wide range of cryptographic algorithms used in various Internet standards.
There is wide range of those and nothing to do, only more and more and
more will be standardised as time passes. LOT more.

Re: OpenSSL (old) tutorial-style example programs ?

<2m2dM.3732661$vBI8.3557758@fx15.iad>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=301&group=comp.lang.c%2B%2B#301

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.neodome.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx15.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: OpenSSL (old) tutorial-style example programs ?
Newsgroups: comp.lang.c++
References: <u4n3bk$3csb0$1@dont-email.me> <u4nk5a$3frh1$1@dont-email.me> <u4o063$3icue$1@dont-email.me> <u4o4t4$3jo9r$1@dont-email.me> <u4ocb6$3l0j9$1@dont-email.me> <u4oito$3m1bg$1@dont-email.me> <u4pls3$3tkls$1@dont-email.me> <u4r567$332h$1@dont-email.me> <u4sa6h$b8gp$1@dont-email.me> <u4scm3$bi8g$1@dont-email.me> <u4t04t$e82q$1@dont-email.me> <xMocM.254901$LAYb.188002@fx02.iad> <u4v2vj$pu2o$2@dont-email.me> <a67a6e3b-9c6a-44d5-882b-6422b32f5723n@googlegroups.com>
Lines: 22
Message-ID: <2m2dM.3732661$vBI8.3557758@fx15.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Mon, 29 May 2023 14:09:02 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Mon, 29 May 2023 14:09:02 GMT
X-Received-Bytes: 2122
 by: Scott Lurndal - Mon, 29 May 2023 14:09 UTC

=?UTF-8?B?w5bDtiBUaWli?= <ootiib@hot.ee> writes:
>On Sunday, 28 May 2023 at 11:24:18 UTC+3, R.Wieser wrote:
>> Scott,
>> >>... and those libeay32 and ssleay32DLLs /still/ have 3000+ functions in
>> >>them. :-)
>> >
>> > Not surprising given that openssl is a general purpose cryptographic
>> > toolkit,
>> Ofcourse. That is why its called "OpenCrypt", and not "OpenSSL".
>>
>> Oh, wait ... :-p
>>
>It is OpenSSL made for Secure Sockets Layer. As that can't be made
>without cryptography it has libcrypto in it. That libcrypto contains
>wide range of cryptographic algorithms used in various Internet standards.
>There is wide range of those and nothing to do, only more and more and
>more will be standardised as time passes. LOT more.

Indeed, in the last 20 years all the uses of the openssl libraries
in my experience have been for crypto purposes, not for SSL. That
includes time at Verisign (before they divested the certificate business
to Symantec) as well as my current employer.

Pages:12
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor