Home | History | Annotate | Download | only in openssh

Lines Matching full:valp

43 sshbuf_get_u64(struct sshbuf *buf, u_int64_t *valp)
50 if (valp != NULL)
51 *valp = PEEK_U64(p);
56 sshbuf_get_u32(struct sshbuf *buf, u_int32_t *valp)
63 if (valp != NULL)
64 *valp = PEEK_U32(p);
69 sshbuf_get_u16(struct sshbuf *buf, u_int16_t *valp)
76 if (valp != NULL)
77 *valp = PEEK_U16(p);
82 sshbuf_get_u8(struct sshbuf *buf, u_char *valp)
89 if (valp != NULL)
90 *valp = (u_int8_t)*p;
95 sshbuf_get_string(struct sshbuf *buf, u_char **valp, size_t *lenp)
101 if (valp != NULL)
102 *valp = NULL;
107 if (valp != NULL) {
108 if ((*valp = malloc(len + 1)) == NULL) {
113 memcpy(*valp, val, len);
114 (*valp)[len] = '\0';
122 sshbuf_get_string_direct(struct sshbuf *buf, const u_char **valp, size_t *lenp)
128 if (valp != NULL)
129 *valp = NULL;
134 if (valp != 0)
135 *valp = p;
148 sshbuf_peek_string_direct(const struct sshbuf *buf, const u_char **valp,
154 if (valp != NULL)
155 *valp = NULL;
171 if (valp != 0)
172 *valp = p + 4;
179 sshbuf_get_cstring(struct sshbuf *buf, char **valp, size_t *lenp)
185 if (valp != NULL)
186 *valp = NULL;
199 if (valp != NULL) {
200 if ((*valp = malloc(len + 1)) == NULL) {
205 memcpy(*valp, p, len);
206 (*valp)[len] = '\0';
430 const u_char **valp, size_t *lenp)
451 if (valp != 0)
452 *valp = d;