Mercurial > dropbear
comparison buffer.h @ 1049:01eea88963f3 fastopen
merge from default
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 28 Feb 2015 09:06:40 +0800 |
parents | deed0571cacc |
children | 16584026a1f0 |
comparison
equal
deleted
inserted
replaced
1048:9cec9ed503bb | 1049:01eea88963f3 |
---|---|
20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | 20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | 21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | 22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
23 * SOFTWARE. */ | 23 * SOFTWARE. */ |
24 | 24 |
25 #ifndef _BUFFER_H_ | 25 #ifndef DROPBEAR_BUFFER_H_ |
26 | 26 |
27 #define _BUFFER_H_ | 27 #define DROPBEAR_BUFFER_H_ |
28 | 28 |
29 #include "includes.h" | 29 #include "includes.h" |
30 | 30 |
31 struct buf { | 31 struct buf { |
32 | 32 |
63 void buf_putbytes(buffer *buf, const unsigned char *bytes, unsigned int len); | 63 void buf_putbytes(buffer *buf, const unsigned char *bytes, unsigned int len); |
64 void buf_putmpint(buffer* buf, mp_int * mp); | 64 void buf_putmpint(buffer* buf, mp_int * mp); |
65 int buf_getmpint(buffer* buf, mp_int* mp); | 65 int buf_getmpint(buffer* buf, mp_int* mp); |
66 unsigned int buf_getint(buffer* buf); | 66 unsigned int buf_getint(buffer* buf); |
67 | 67 |
68 #endif /* _BUFFER_H_ */ | 68 #endif /* DROPBEAR_BUFFER_H_ */ |