• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/crypto/openssl/ssl/

Lines Matching defs:WPACKET

604      * Offset into the buffer where the length of this WPACKET goes. We use an
619 typedef struct wpacket_st WPACKET;
636 /* Maximum number of bytes we will allow to be written to this WPACKET */
648 /* Error on WPACKET_close() if no data written to the WPACKET */
652 * Abandon all changes on WPACKET_close() if no data written to the WPACKET,
659 * Initialise a WPACKET with the buffer in |buf|. The buffer must exist
660 * for the whole time that the WPACKET is being used. Additionally |lenbytes| of
662 * WPACKET once we know it.
664 int WPACKET_init_len(WPACKET *pkt, BUF_MEM *buf, size_t lenbytes);
667 * Same as WPACKET_init_len except there is no preallocation of the WPACKET
670 int WPACKET_init(WPACKET *pkt, BUF_MEM *buf);
677 int WPACKET_init_static_len(WPACKET *pkt, unsigned char *buf, size_t len,
682 int WPACKET_set_flags(WPACKET *pkt, unsigned int flags);
686 * packet to the required location (normally the start of the WPACKET) if
687 * appropriate. The top level WPACKET should be closed using WPACKET_finish()
690 int WPACKET_close(WPACKET *pkt);
693 * The same as WPACKET_close() but only for the top most WPACKET. Additionally
694 * frees memory resources for this WPACKET.
696 int WPACKET_finish(WPACKET *pkt);
702 * data is added to the WPACKET). This function fails if a sub-packet is of 0
705 int WPACKET_fill_lengths(WPACKET *pkt);
712 int WPACKET_start_sub_packet_len__(WPACKET *pkt, size_t lenbytes);
731 int WPACKET_start_sub_packet(WPACKET *pkt);
734 * Allocate bytes in the WPACKET for the output. This reserves the bytes
741 int WPACKET_allocate_bytes(WPACKET *pkt, size_t len,
750 int WPACKET_sub_allocate_bytes__(WPACKET *pkt, size_t len,
771 * followed by a WPACKET_allocate_bytes() call before any other WPACKET
784 int WPACKET_reserve_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes);
789 int WPACKET_sub_reserve_bytes__(WPACKET *pkt, size_t len,
805 * Write the value stored in |val| into the WPACKET. The value will consume
811 int WPACKET_put_bytes__(WPACKET *pkt, unsigned int val, size_t bytes);
826 /* Set a maximum size that we will not allow the WPACKET to grow beyond */
827 int WPACKET_set_max_size(WPACKET *pkt, size_t maxsize);
829 /* Copy |len| bytes of data from |*src| into the WPACKET. */
830 int WPACKET_memcpy(WPACKET *pkt, const void *src, size_t len);
832 /* Set |len| bytes of data to |ch| into the WPACKET. */
833 int WPACKET_memset(WPACKET *pkt, int ch, size_t len);
836 * Copy |len| bytes of data from |*src| into the WPACKET and prefix with its
840 int WPACKET_sub_memcpy__(WPACKET *pkt, const void *src, size_t len,
857 int WPACKET_get_total_written(WPACKET *pkt, size_t *written);
863 int WPACKET_get_length(WPACKET *pkt, size_t *len);
869 unsigned char *WPACKET_get_curr(WPACKET *pkt);
871 /* Release resources in a WPACKET if a failure has occurred. */
872 void WPACKET_cleanup(WPACKET *pkt);