Lines Matching refs:noctets
466 * Get an octetstring. noctets must point to the buffer size and on
472 u_int *noctets)
476 if (*noctets < len) {
484 if (*noctets < len)
485 memcpy(octets, b->asn_cptr, *noctets);
488 *noctets = len;
495 asn_get_octetstring(struct asn_buf *b, u_char *octets, u_int *noctets)
507 return (asn_get_octetstring_raw(b, len, octets, noctets));
511 asn_put_octetstring(struct asn_buf *b, const u_char *octets, u_int noctets)
515 if ((ret = asn_put_header(b, ASN_TYPE_OCTETSTRING, noctets)) != ASN_ERR_OK)
517 if (b->asn_len < noctets)
520 memcpy(b->asn_ptr, octets, noctets);
521 b->asn_ptr += noctets;
522 b->asn_len -= noctets;