Jeremy.
uint32 grow_size; /* size requested via prs_grow() calls */
char *data_p; /* The buffer itself. */
TALLOC_CTX *mem_ctx; /* When unmarshalling, use this.... */
- const char *sess_key; /* If we have to do encrypt/decrypt on the fly. */
} prs_struct;
/*
bool prs_align_needed(prs_struct *ps, uint32 needed);
char *prs_mem_get(prs_struct *ps, uint32 extra_size);
void prs_switch_type(prs_struct *ps, bool io);
-void prs_force_dynamic(prs_struct *ps);
-void prs_set_session_key(prs_struct *ps, const char sess_key[16]);
bool prs_uint8(const char *name, prs_struct *ps, int depth, uint8 *data8);
bool prs_uint16(const char *name, prs_struct *ps, int depth, uint16 *data16);
bool prs_uint32(const char *name, prs_struct *ps, int depth, uint32 *data32);
ps->io=io;
}
-/*******************************************************************
- Force a prs_struct to be dynamic even when it's size is 0.
- ********************************************************************/
-
-void prs_force_dynamic(prs_struct *ps)
-{
- ps->is_dynamic=True;
-}
-
-/*******************************************************************
- Associate a session key with a parse struct.
- ********************************************************************/
-
-void prs_set_session_key(prs_struct *ps, const char sess_key[16])
-{
- ps->sess_key = sess_key;
-}
-
/*******************************************************************
Stream a uint8.
********************************************************************/