libcrypto: fix a long-standing quirk in CCM mode
For some reason it was decided that in CCM mode the caller should not be
allowed to set the tag length before setting the tag, which is the natural
order. This required various contortions in downstream, at least in Ruby
and rust-openssl.
This pulls in 9cca7be1 (before license change) and makes a trivial change
functionally equivalent to (but different from) 67c81ec3 from OpenSSL.
From William T. Nelson
libcrypto: add missing AEAD flag to AES-CCM
The AES-CCM ciphers aren't marked as AEAD ciphers, so openssl enc allows
them even though it shouldn't. OpenSSL has set the flag since adding CCM
support to libssl in e75c5a79.
From William T. Nelson
rpki-client: handle {0} ASPAs up front
The semantics of merging mean that merging {0} into an already existing
CAS does nothing, so if aspa->providers[] is the set {0}, we can return
early. If v->providers[] is the set {0}, drop the 0 and adjust counters
then copy aspa->providers[] into it.
This approach would have worked before, but it's now a bit easier to see
why it works.
ok claudio