Lines Matching defs:from

880 	/* Trim padding characters from end */
953 * profit from its built-in pattern recognition ability.
969 * Movement is taken from dgst_raw 2bit-wise. Bumping into walls
1209 /* Fill in ret from parsed key */
1394 const struct sshkey_cert *from;
1398 if (to_key == NULL || (from = from_key->cert) == NULL)
1404 if ((r = sshbuf_putb(to->certblob, from->certblob)) != 0 ||
1405 (r = sshbuf_putb(to->critical, from->critical)) != 0 ||
1406 (r = sshbuf_putb(to->extensions, from->extensions)) != 0)
1409 to->serial = from->serial;
1410 to->type = from->type;
1411 if (from->key_id == NULL)
1413 else if ((to->key_id = strdup(from->key_id)) == NULL) {
1417 to->valid_after = from->valid_after;
1418 to->valid_before = from->valid_before;
1419 if (from->signature_key == NULL)
1421 else if ((r = sshkey_from_private(from->signature_key,
1424 if (from->signature_type != NULL &&
1425 (to->signature_type = strdup(from->signature_type)) == NULL) {
1429 if (from->nprincipals > SSHKEY_CERT_MAX_PRINCIPALS) {
1433 if (from->nprincipals > 0) {
1434 if ((to->principals = calloc(from->nprincipals,
1439 for (i = 0; i < from->nprincipals; i++) {
1440 to->principals[i] = strdup(from->principals[i]);
1448 to->nprincipals = from->nprincipals;
1461 sshkey_copy_public_sk(const struct sshkey *from, struct sshkey *to)
1464 if ((to->sk_application = strdup(from->sk_application)) == NULL)
1526 /* Prepare a random pre-key, and from it an ephemeral key */
1671 /* Calculate the ephemeral key from the prekey */
2371 char from[32], to[32], ret[128];
2373 *from = *to = '\0';
2379 format_absolute_time(cert->valid_after, from, sizeof(from));
2386 snprintf(ret, sizeof(ret), "after %s", from);
2388 snprintf(ret, sizeof(ret), "from %s to %s", from, to);
3136 /* parse public key from unencrypted envelope */