<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/bio/bss_file.c, branch OPENBSD_6_8_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_6_8_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_6_8_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2018-05-30T00:23:04+00:00</updated>
<entry>
<title>Add a const qualifier to the return value of BIO_s_file().</title>
<updated>2018-05-30T00:23:04+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2018-05-30T00:23:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ba417c1f27f6729e06c935d52544e49aa831b602'/>
<id>urn:sha1:ba417c1f27f6729e06c935d52544e49aa831b602</id>
<content type='text'>
tested in a bulk build by sthen
ok bcook, jsing
</content>
</entry>
<entry>
<title>Send the function codes from the error functions to the bit bucket,</title>
<updated>2017-01-29T17:49:23+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2017-01-29T17:49:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d1f47bd292f36094480caa49ada36b99a69c59b0'/>
<id>urn:sha1:d1f47bd292f36094480caa49ada36b99a69c59b0</id>
<content type='text'>
as was done earlier in libssl. Thanks inoguchi@ for noticing
libssl had more reacharounds into this.
ok jsing@ inoguchi@
</content>
</entry>
<entry>
<title>f{read,write} take a number of items and an item size as arguments, and</title>
<updated>2014-11-11T19:26:12+00:00</updated>
<author>
<name>miod</name>
<email></email>
</author>
<published>2014-11-11T19:26:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d2537ceeb86a4b72d3f8aab47db63f956fc1ac99'/>
<id>urn:sha1:d2537ceeb86a4b72d3f8aab47db63f956fc1ac99</id>
<content type='text'>
return the number of items read of written.

When you intend to return the number of bytes actually processed, it is
wise to pass 1 as the item size and the size as the number of items.

But in *some* places, the OpenSSL does the opposite, and has extra logic
to change a successful return of 1 (item processed) into the real size.

And, guess why it does that? Because of old VMS, for they (used to) have a
substandard stdio implementation.

Note that this change causes the return values of BIO_dump_fp() and
BIO_dump_indent_fp() to no longer be useless (actual number of callback calls),
but actual bytes output. Given the irrelevance of the return value before,
it is unlikely that anything depends upon it (and if something does, it
probably has other problems in need for a fix...)

ok tedu@ beck@ jsing@
</content>
</entry>
<entry>
<title>Only import cryptlib.h in the four source files that actually need it.</title>
<updated>2014-07-11T08:44:49+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2014-07-11T08:44:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=74e2c009c83ad374bd6acdcfc376a384e25ab007'/>
<id>urn:sha1:74e2c009c83ad374bd6acdcfc376a384e25ab007</id>
<content type='text'>
Remove the openssl public includes from cryptlib.h and add a small number
of includes into the source files that actually need them. While here,
also sort/group/tidy the includes.

ok beck@ miod@
</content>
</entry>
<entry>
<title>Stop including standard headers via cryptlib.h - pull in the headers that</title>
<updated>2014-07-10T13:58:23+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2014-07-10T13:58:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c917c683bc93c68fbf4310ac181f7906e76b3c94'/>
<id>urn:sha1:c917c683bc93c68fbf4310ac181f7906e76b3c94</id>
<content type='text'>
are needed in the source files that actually require them.

ok beck@ miod@
</content>
</entry>
<entry>
<title>tags as requested by miod and tedu</title>
<updated>2014-06-12T15:49:31+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2014-06-12T15:49:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=59f4f2c61d71e266d37dd2fc97615b3fd35b4721'/>
<id>urn:sha1:59f4f2c61d71e266d37dd2fc97615b3fd35b4721</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Any sane platform has stdio. Stop pretending we will ever use a platform</title>
<updated>2014-05-29T18:27:52+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2014-05-29T18:27:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e79909cf30efce3949f375df3aef096d334eb6fe'/>
<id>urn:sha1:e79909cf30efce3949f375df3aef096d334eb6fe</id>
<content type='text'>
that does not.
"fire bomb" tedu@
</content>
</entry>
<entry>
<title>Use C99 initializers for the various FOO_METHOD structs. More readable, and</title>
<updated>2014-04-27T20:26:49+00:00</updated>
<author>
<name>miod</name>
<email></email>
</author>
<published>2014-04-27T20:26:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b5544d0885b7b6ceebce880a188724826a8fc5e9'/>
<id>urn:sha1:b5544d0885b7b6ceebce880a188724826a8fc5e9</id>
<content type='text'>
avoid unreadable/unmaintainable constructs like that:

const EVP_PKEY_ASN1_METHOD cmac_asn1_meth =
        {
        EVP_PKEY_CMAC,
        EVP_PKEY_CMAC,
        0,

        "CMAC",
        "OpenSSL CMAC method",

        0,0,0,0,

        0,0,0,

        cmac_size,
        0,
        0,0,0,0,0,0,0,

        cmac_key_free,
        0,
        0,0
        };

ok matthew@ deraadt@
</content>
</entry>
<entry>
<title>Replace all use of ERR_add_error_data with ERR_asprintf_error_data.</title>
<updated>2014-04-26T18:56:38+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2014-04-26T18:56:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e7dbd7a1e2ad3e12dafa2919bc8603d60416ea4d'/>
<id>urn:sha1:e7dbd7a1e2ad3e12dafa2919bc8603d60416ea4d</id>
<content type='text'>
This avoids a lot of ugly gymnastics to do snprintfs before sending the
bag of strings to ERR, and eliminates at least one place in dso_dlfctn.c
where it was being called with the incorrect number of arguments and
using random things off the stack as addresses of strings.
ok krw@, jsing@
</content>
</entry>
<entry>
<title>use intrinsic strlcpy and strlcat everywhere so we only have one set of</title>
<updated>2014-04-19T00:41:38+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2014-04-19T00:41:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=73628bf3ecdcfc6ecfa2f0cb67009a8548e6659b'/>
<id>urn:sha1:73628bf3ecdcfc6ecfa2f0cb67009a8548e6659b</id>
<content type='text'>
funcitons to check for incorrect use. keep BUF_strlcpy and BUF_strlcat
for API comptibility only.
ok tedu@
</content>
</entry>
</feed>
