patch: make stun_msg_vencode() public
This commit is contained in:
parent
85e6fc64a4
commit
af6e8c9c27
2 changed files with 4 additions and 5 deletions
|
@ -189,6 +189,10 @@ int stun_indication(int proto, void *sock, const struct sa *dst, size_t presz,
|
|||
uint16_t method, const uint8_t *key, size_t keylen,
|
||||
bool fp, uint32_t attrc, ...);
|
||||
|
||||
int stun_msg_vencode(struct mbuf *mb, uint16_t method, uint8_t class,
|
||||
const uint8_t *tid, const struct stun_errcode *ec,
|
||||
const uint8_t *key, size_t keylen, bool fp,
|
||||
uint8_t padding, uint32_t attrc, va_list ap);
|
||||
int stun_msg_encode(struct mbuf *mb, uint16_t method, uint8_t cls,
|
||||
const uint8_t *tid, const struct stun_errcode *ec,
|
||||
const uint8_t *key, size_t keylen, bool fp,
|
||||
|
|
|
@ -42,11 +42,6 @@ struct stun {
|
|||
void *arg;
|
||||
};
|
||||
|
||||
int stun_msg_vencode(struct mbuf *mb, uint16_t method, uint8_t class,
|
||||
const uint8_t *tid, const struct stun_errcode *ec,
|
||||
const uint8_t *key, size_t keylen, bool fp,
|
||||
uint8_t padding, uint32_t attrc, va_list ap);
|
||||
|
||||
int stun_hdr_encode(struct mbuf *mb, const struct stun_hdr *hdr);
|
||||
int stun_hdr_decode(struct mbuf *mb, struct stun_hdr *hdr);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue