<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libssl/bs_ber.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>2016-12-03T12:34:35+00:00</updated>
<entry>
<title>Avoid signed vs unsigned warnings from clang by adding two casts,</title>
<updated>2016-12-03T12:34:35+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2016-12-03T12:34:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=578440178487a164eba874e7a566a55de4a9e2e8'/>
<id>urn:sha1:578440178487a164eba874e7a566a55de4a9e2e8</id>
<content type='text'>
slightly rewriting some code and changing the type of an array.

ok bcook@ doug@
</content>
</entry>
<entry>
<title>Check for failure with CBB_init() in bs_ber.c.</title>
<updated>2015-06-21T16:10:45+00:00</updated>
<author>
<name>doug</name>
<email></email>
</author>
<published>2015-06-21T16:10:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b97997b53e900d6e532a26c353078d8d7779ad1e'/>
<id>urn:sha1:b97997b53e900d6e532a26c353078d8d7779ad1e</id>
<content type='text'>
From BoringSSL commit 3fa65f0f05f67615d9daf48940e07f84d094ac6e.
</content>
</entry>
<entry>
<title>Use explicit int in bs_ber.c.</title>
<updated>2015-06-17T07:20:39+00:00</updated>
<author>
<name>doug</name>
<email></email>
</author>
<published>2015-06-17T07:20:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=813677f2785c97e586fde9752ed686ed6ac85193'/>
<id>urn:sha1:813677f2785c97e586fde9752ed686ed6ac85193</id>
<content type='text'>
ok miod@ jsing@
</content>
</entry>
<entry>
<title>Be more strict about BER and DER terminology.</title>
<updated>2015-06-16T06:37:58+00:00</updated>
<author>
<name>doug</name>
<email></email>
</author>
<published>2015-06-16T06:37:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b87417588144066bdf43f4c7eaed221f27269c8f'/>
<id>urn:sha1:b87417588144066bdf43f4c7eaed221f27269c8f</id>
<content type='text'>
bs_ber.c does not convert BER to DER.  It's a hack to convert a DER-like
encoding with one violation (indefinite form) to strict DER.  Rename
the functions to reflect this.

ok miod@ jsing@
</content>
</entry>
<entry>
<title>Make CBS_get_any_asn1_element() more compliant with DER encoding.</title>
<updated>2015-06-15T07:35:49+00:00</updated>
<author>
<name>doug</name>
<email></email>
</author>
<published>2015-06-15T07:35:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f06caa67ef95efe3935b9b1e51f4e8a10a52d973'/>
<id>urn:sha1:f06caa67ef95efe3935b9b1e51f4e8a10a52d973</id>
<content type='text'>
CBS_get_any_asn1_element violates DER encoding by allowing indefinite
form.  All callers except bs_ber.c expect DER encoding.  The callers
must check to see if it was indefinite or not.

Rather than exposing all callers to this behavior,
cbs_get_any_asn1_element_internal() allows specifying whether you want to
allow the normally forbidden indefinite form.  This is used by
CBS_get_any_asn1_element() for strict DER encoding and by a new static
function in bs_ber.c for the relaxed version.

While I was here, I added comments to differentiate between ASN.1
restrictions and CBS limitations.

ok miod@
</content>
</entry>
<entry>
<title>Add whitespace and replace OPENSSL_free with free in documentation.</title>
<updated>2015-04-29T02:11:09+00:00</updated>
<author>
<name>doug</name>
<email></email>
</author>
<published>2015-04-29T02:11:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=82d4e9306fa0516286b66cf7b46315b9ff1cf8a1'/>
<id>urn:sha1:82d4e9306fa0516286b66cf7b46315b9ff1cf8a1</id>
<content type='text'>
ok jsing@
</content>
</entry>
<entry>
<title>Call CBS_mem_equal() rather than reimplementing it.</title>
<updated>2015-04-29T01:31:39+00:00</updated>
<author>
<name>doug</name>
<email></email>
</author>
<published>2015-04-29T01:31:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e2a0aa020fd370f1d6e7a9277f0e06bbde38322d'/>
<id>urn:sha1:e2a0aa020fd370f1d6e7a9277f0e06bbde38322d</id>
<content type='text'>
ok jsing@
</content>
</entry>
<entry>
<title>KNF bytestring files.</title>
<updated>2015-02-06T22:22:33+00:00</updated>
<author>
<name>doug</name>
<email></email>
</author>
<published>2015-02-06T22:22:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d03a4807083e9e8c5b74ea28b35bf911945962ec'/>
<id>urn:sha1:d03a4807083e9e8c5b74ea28b35bf911945962ec</id>
<content type='text'>
I checked that this doesn't change anything.  Compiled with clang using
-Wno-pointer-sign -g0  to reduce the differences.  Only difference in the
asm is due to assert(0) line number changes in bs_cbs.c and bs_cbb.c.

miod is ok with the general process.
</content>
</entry>
<entry>
<title>Import BoringSSL's crypto bytestring and crypto bytebuilder APIs.</title>
<updated>2015-02-06T09:36:16+00:00</updated>
<author>
<name>doug</name>
<email></email>
</author>
<published>2015-02-06T09:36:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=57c3c820260976eedbeceb47dc79b313f0dd1b42'/>
<id>urn:sha1:57c3c820260976eedbeceb47dc79b313f0dd1b42</id>
<content type='text'>
This is imported with as few changes as possible for the initial commit.
I removed OPENSSL_EXPORT, replaced OPENSSL_malloc() etc with malloc()
and changed a few header includes.

BoringSSL has this as part of their public API.  We're leaving it internal
to libssl for now.

Based on BoringSSL's CBB/CBS API as of commit
c5cc15b4f5b1d6e9b9112cb8d30205a638aa2c54.

input + ok jsing@, miod@
</content>
</entry>
</feed>
