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