}
}
- /* On OpenBSD it is always ipv6 only with ipv6 sockets thus read-only */
+ /* On OpenBSD it is always IPv6 only with IPv6 sockets thus read-only */
# if defined(IPV6_V6ONLY) && !defined(__OpenBSD__)
if (BIO_ADDR_family(addr) == AF_INET6) {
/*
* The prime is: 2^768 - 2 ^704 - 1 + 2^64 * { [2^638 pi] + 149686 }
*
* RFC2409 specifies a generator of 2.
- * RFC2412 specifies a generator of of 22.
+ * RFC2412 specifies a generator of 22.
*/
BIGNUM *BN_get_rfc2409_prime_768(BIGNUM *bn)
}
if (check_msg_find_cert(ctx, msg)) {
ossl_cmp_debug(ctx,
- "sucessfully validated signature-based CMP message protection using trust store");
+ "successfully validated signature-based CMP message protection using trust store");
return 1;
}
} else { /* use pinned sender cert */
struct dsa_st {
/*
* This first variable is used to pick up errors where a DSA is passed
- * instead of of a EVP_PKEY
+ * instead of an EVP_PKEY
*/
int pad;
int32_t version;
p = params->p;
q = params->q;
goto g_only;
- /* otherwise fall thru to validate p & q */
+ /* otherwise fall through to validate p & q */
}
/* p & q will be used for generation and validation */
p = params->p;
q = params->q;
goto g_only;
- /* otherwise fall thru to validate p and q */
+ /* otherwise fall through to validate p and q */
}
use_random_seed = (seed_in == NULL);
void *upd_arg; /* Optional arg for update callback function */
int use_ssl; /* Use HTTPS */
char *proxy; /* Optional proxy name or URI */
- char *server; /* Optional server host name */
+ char *server; /* Optional server hostname */
char *port; /* Optional server port */
BIO *mem; /* Mem BIO holding request header or response */
BIO *req; /* BIO holding the request provided by caller */
}
rctx->state = OHS_WRITE_INIT;
- /* fall thru */
+ /* fall through */
case OHS_WRITE_INIT:
rctx->len_to_send = BIO_get_mem_data(rctx->mem, &rctx->pos);
rctx->state = OHS_WRITE_HDR;
if (OSSL_TRACE_ENABLED(HTTP))
OSSL_TRACE(HTTP, "Sending request header:\n");
- /* fall thru */
+ /* fall through */
case OHS_WRITE_HDR:
/* Copy some chunk of data from rctx->mem to rctx->wbio */
case OHS_WRITE_REQ:
}
rctx->state = OHS_FLUSH;
- /* fall thru */
+ /* fall through */
case OHS_FLUSH:
i = BIO_flush(rctx->wbio);
else
host = p;
- /* parse host name/address as far as needed here */
+ /* parse hostname/address as far as needed here */
if (host[0] == '[') {
- /* ipv6 literal, which may include ':' */
+ /* IPv6 literal, which may include ':' */
host_end = strchr(host + 1, ']');
if (host_end == NULL)
goto parse_err;
l1=l2=0; \
switch (n) { \
case 8: l2 =((unsigned long)(*(--(c)))) ; \
- /* fall thru */ \
+ /* fall through */ \
case 7: l2|=((unsigned long)(*(--(c))))<< 8; \
- /* fall thru */ \
+ /* fall through */ \
case 6: l2|=((unsigned long)(*(--(c))))<<16; \
- /* fall thru */ \
+ /* fall through */ \
case 5: l2|=((unsigned long)(*(--(c))))<<24; \
- /* fall thru */ \
+ /* fall through */ \
case 4: l1 =((unsigned long)(*(--(c)))) ; \
- /* fall thru */ \
+ /* fall through */ \
case 3: l1|=((unsigned long)(*(--(c))))<< 8; \
- /* fall thru */ \
+ /* fall through */ \
case 2: l1|=((unsigned long)(*(--(c))))<<16; \
- /* fall thru */ \
+ /* fall through */ \
case 1: l1|=((unsigned long)(*(--(c))))<<24; \
} \
}
c+=n; \
switch (n) { \
case 8: *(--(c))=(unsigned char)(((l2) )&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 7: *(--(c))=(unsigned char)(((l2)>> 8)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 6: *(--(c))=(unsigned char)(((l2)>>16)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 5: *(--(c))=(unsigned char)(((l2)>>24)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 4: *(--(c))=(unsigned char)(((l1) )&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 3: *(--(c))=(unsigned char)(((l1)>> 8)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 2: *(--(c))=(unsigned char)(((l1)>>16)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 1: *(--(c))=(unsigned char)(((l1)>>24)&0xff); \
} \
}
case ASN1_OP_STREAM_PRE:
if (PKCS7_stream(&sarg->boundary, *pp7) <= 0)
return 0;
- /* fall thru */
+ /* fall through */
case ASN1_OP_DETACHED_PRE:
sarg->ndef_bio = PKCS7_dataInit(*pp7, sarg->out);
if (!sarg->ndef_bio)
l1=l2=0; \
switch (n) { \
case 8: l2 =((unsigned long)(*(--(c))))<<24L; \
- /* fall thru */ \
+ /* fall through */ \
case 7: l2|=((unsigned long)(*(--(c))))<<16L; \
- /* fall thru */ \
+ /* fall through */ \
case 6: l2|=((unsigned long)(*(--(c))))<< 8L; \
- /* fall thru */ \
+ /* fall through */ \
case 5: l2|=((unsigned long)(*(--(c)))); \
- /* fall thru */ \
+ /* fall through */ \
case 4: l1 =((unsigned long)(*(--(c))))<<24L; \
- /* fall thru */ \
+ /* fall through */ \
case 3: l1|=((unsigned long)(*(--(c))))<<16L; \
- /* fall thru */ \
+ /* fall through */ \
case 2: l1|=((unsigned long)(*(--(c))))<< 8L; \
- /* fall thru */ \
+ /* fall through */ \
case 1: l1|=((unsigned long)(*(--(c)))); \
} \
}
c+=n; \
switch (n) { \
case 8: *(--(c))=(unsigned char)(((l2)>>24L)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 7: *(--(c))=(unsigned char)(((l2)>>16L)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 6: *(--(c))=(unsigned char)(((l2)>> 8L)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 5: *(--(c))=(unsigned char)(((l2) )&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 4: *(--(c))=(unsigned char)(((l1)>>24L)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 3: *(--(c))=(unsigned char)(((l1)>>16L)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 2: *(--(c))=(unsigned char)(((l1)>> 8L)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 1: *(--(c))=(unsigned char)(((l1) )&0xff); \
} \
}
l1=l2=0; \
switch (n) { \
case 8: l2 =((unsigned long)(*(--(c)))) ; \
- /* fall thru */ \
+ /* fall through */ \
case 7: l2|=((unsigned long)(*(--(c))))<< 8; \
- /* fall thru */ \
+ /* fall through */ \
case 6: l2|=((unsigned long)(*(--(c))))<<16; \
- /* fall thru */ \
+ /* fall through */ \
case 5: l2|=((unsigned long)(*(--(c))))<<24; \
- /* fall thru */ \
+ /* fall through */ \
case 4: l1 =((unsigned long)(*(--(c)))) ; \
- /* fall thru */ \
+ /* fall through */ \
case 3: l1|=((unsigned long)(*(--(c))))<< 8; \
- /* fall thru */ \
+ /* fall through */ \
case 2: l1|=((unsigned long)(*(--(c))))<<16; \
- /* fall thru */ \
+ /* fall through */ \
case 1: l1|=((unsigned long)(*(--(c))))<<24; \
} \
}
c+=n; \
switch (n) { \
case 8: *(--(c))=(unsigned char)(((l2) )&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 7: *(--(c))=(unsigned char)(((l2)>> 8)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 6: *(--(c))=(unsigned char)(((l2)>>16)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 5: *(--(c))=(unsigned char)(((l2)>>24)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 4: *(--(c))=(unsigned char)(((l1) )&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 3: *(--(c))=(unsigned char)(((l1)>> 8)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 2: *(--(c))=(unsigned char)(((l1)>>16)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 1: *(--(c))=(unsigned char)(((l1)>>24)&0xff); \
} \
}
l1=l2=0; \
switch (n) { \
case 8: l2 =((unsigned long)(*(--(c))))<<24L; \
- /* fall thru */ \
+ /* fall through */ \
case 7: l2|=((unsigned long)(*(--(c))))<<16L; \
- /* fall thru */ \
+ /* fall through */ \
case 6: l2|=((unsigned long)(*(--(c))))<< 8L; \
- /* fall thru */ \
+ /* fall through */ \
case 5: l2|=((unsigned long)(*(--(c)))); \
- /* fall thru */ \
+ /* fall through */ \
case 4: l1 =((unsigned long)(*(--(c))))<<24L; \
- /* fall thru */ \
+ /* fall through */ \
case 3: l1|=((unsigned long)(*(--(c))))<<16L; \
- /* fall thru */ \
+ /* fall through */ \
case 2: l1|=((unsigned long)(*(--(c))))<< 8L; \
- /* fall thru */ \
+ /* fall through */ \
case 1: l1|=((unsigned long)(*(--(c)))); \
} \
}
c+=n; \
switch (n) { \
case 8: *(--(c))=(unsigned char)(((l2)>>24L)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 7: *(--(c))=(unsigned char)(((l2)>>16L)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 6: *(--(c))=(unsigned char)(((l2)>> 8L)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 5: *(--(c))=(unsigned char)(((l2) )&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 4: *(--(c))=(unsigned char)(((l1)>>24L)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 3: *(--(c))=(unsigned char)(((l1)>>16L)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 2: *(--(c))=(unsigned char)(((l1)>> 8L)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 1: *(--(c))=(unsigned char)(((l1) )&0xff); \
} \
}
l1=l2=0; \
switch (n) { \
case 8: l2 =((unsigned long)(*(--(c)))) ; \
- /* fall thru */ \
+ /* fall through */ \
case 7: l2|=((unsigned long)(*(--(c))))<< 8; \
- /* fall thru */ \
+ /* fall through */ \
case 6: l2|=((unsigned long)(*(--(c))))<<16; \
- /* fall thru */ \
+ /* fall through */ \
case 5: l2|=((unsigned long)(*(--(c))))<<24; \
- /* fall thru */ \
+ /* fall through */ \
case 4: l1 =((unsigned long)(*(--(c)))) ; \
- /* fall thru */ \
+ /* fall through */ \
case 3: l1|=((unsigned long)(*(--(c))))<< 8; \
- /* fall thru */ \
+ /* fall through */ \
case 2: l1|=((unsigned long)(*(--(c))))<<16; \
- /* fall thru */ \
+ /* fall through */ \
case 1: l1|=((unsigned long)(*(--(c))))<<24; \
} \
}
c+=n; \
switch (n) { \
case 8: *(--(c))=(unsigned char)(((l2) )&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 7: *(--(c))=(unsigned char)(((l2)>> 8)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 6: *(--(c))=(unsigned char)(((l2)>>16)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 5: *(--(c))=(unsigned char)(((l2)>>24)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 4: *(--(c))=(unsigned char)(((l1) )&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 3: *(--(c))=(unsigned char)(((l1)>> 8)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 2: *(--(c))=(unsigned char)(((l1)>>16)&0xff); \
- /* fall thru */ \
+ /* fall through */ \
case 1: *(--(c))=(unsigned char)(((l1)>>24)&0xff); \
} \
}
switch (ctx->len) {
case 7:
b |= ((uint64_t)ctx->leavings[6]) << 48;
- /* fall thru */
+ /* fall through */
case 6:
b |= ((uint64_t)ctx->leavings[5]) << 40;
- /* fall thru */
+ /* fall through */
case 5:
b |= ((uint64_t)ctx->leavings[4]) << 32;
- /* fall thru */
+ /* fall through */
case 4:
b |= ((uint64_t)ctx->leavings[3]) << 24;
- /* fall thru */
+ /* fall through */
case 3:
b |= ((uint64_t)ctx->leavings[2]) << 16;
- /* fall thru */
+ /* fall through */
case 2:
b |= ((uint64_t)ctx->leavings[1]) << 8;
- /* fall thru */
+ /* fall through */
case 1:
b |= ((uint64_t)ctx->leavings[0]);
case 0:
}
/*
- * Functions to try to extract data from a OSSL_STORE_INFO.
+ * Functions to try to extract data from an OSSL_STORE_INFO.
*/
int OSSL_STORE_INFO_get_type(const OSSL_STORE_INFO *info)
{
ASN1_INTEGER *seconds; /* accuracy, 0 means not specified. */
ASN1_INTEGER *millis; /* accuracy, 0 means not specified. */
ASN1_INTEGER *micros; /* accuracy, 0 means not specified. */
- unsigned clock_precision_digits; /* fraction of seconds in time stamp
+ unsigned clock_precision_digits; /* fraction of seconds in timestamp
* token. */
unsigned flags; /* Optional info, see values above. */
/* Callback functions. */
}
/*-
- * Verifies whether the 'token' contains a valid time stamp token
+ * Verifies whether the 'token' contains a valid timestamp token
* with regards to the settings of the context. Only those checks are
* carried out that are specified in the context:
* - Verifies the signature of the TS_TST_INFO.
/*
* We try to set the criterion, but don't care if it was valid or not.
- * For a OSSL_STORE, it merely serves as an optimization, the expectation
+ * For an OSSL_STORE, it merely serves as an optimization, the expectation
* being that if the criterion couldn't be used, we will get *everything*
* from the container that the URI represents rather than the subset that
* the criterion indicates, so the biggest harm is that we cache more
ne = X509_NAME_get_entry(nm, i);
cn = X509_NAME_ENTRY_get_data(ne);
- /* Only process attributes that look like host names */
+ /* Only process attributes that look like hostnames */
if ((r = cn2dnsid(cn, &idval, &idlen)) != X509_V_OK)
return r;
if (idlen == 0)
!(x->ex_kusage & (KU_NON_REPUDIATION | KU_DIGITAL_SIGNATURE))))
return 0;
- /* Only time stamp key usage is permitted and it's required. */
+ /* Only timestamp key usage is permitted and it's required. */
if ((x->ex_flags & EXFLAG_XKUSAGE) == 0 || x->ex_xkusage != XKU_TIMESTAMP)
return 0;
ASN1_INTEGER_free(crl->crl_number);
ASN1_INTEGER_free(crl->base_crl_number);
sk_GENERAL_NAMES_pop_free(crl->issuers, GENERAL_NAMES_free);
- /* fall thru */
+ /* fall through */
case ASN1_OP_NEW_POST:
crl->idp = NULL;
switch (operation) {
case ASN1_OP_D2I_PRE:
ASN1_OCTET_STRING_free(ret->distinguishing_id);
- /* fall thru */
+ /* fall through */
case ASN1_OP_NEW_POST:
ret->distinguishing_id = NULL;
break;
#endif
ASN1_OCTET_STRING_free(ret->distinguishing_id);
- /* fall thru */
+ /* fall through */
case ASN1_OP_NEW_POST:
ret->ex_cached = 0;