#include "internal/endian.h"
#include "internal/params.h"
#include "internal/packet.h"
+#include "internal/common.h"
/* Shortcuts for raising errors that are widely used */
#define err_unsigned_negative \
OSSL_PARAM *OSSL_PARAM_locate(OSSL_PARAM *p, const char *key)
{
- if (p != NULL && key != NULL)
+ if (ossl_likely(p != NULL && key != NULL))
for (; p->key != NULL; p++)
if (strcmp(key, p->key) == 0)
return p;
return 0;
}
- if (p->data_type == OSSL_PARAM_UNSIGNED_INTEGER) {
+ if (ossl_likely(p->data_type == OSSL_PARAM_UNSIGNED_INTEGER)) {
#ifndef OPENSSL_SMALL_FOOTPRINT
switch (p->data_size) {
case sizeof(uint32_t):