]> git.saurik.com Git - apple/security.git/blob - sec/Security/SecOTRPackets.h
Security-55471.tar.gz
[apple/security.git] / sec / Security / SecOTRPackets.h
1 //
2 // SecOTRPackets.h
3 // libsecurity_libSecOTR
4 //
5 // Created by Mitch Adler on 2/23/11.
6 // Copyright 2011 Apple Inc. All rights reserved.
7 //
8
9 #include <Security/SecOTRSession.h>
10
11 #include <CoreFoundation/CFData.h>
12
13 #ifndef _SECOTRPACKETS_H_
14 #define _SECOTRPACKETS_H_
15
16 void SecOTRAppendDHMessage(SecOTRSessionRef session, CFMutableDataRef appendTo);
17 void SecOTRAppendDHKeyMessage(SecOTRSessionRef session, CFMutableDataRef appendTo);
18 void SecOTRAppendRevealSignatureMessage(SecOTRSessionRef session, CFMutableDataRef appendTo);
19 void SecOTRAppendSignatureMessage(SecOTRSessionRef session, CFMutableDataRef appendTo);
20
21 typedef enum {
22 kDHMessage = 0x02,
23 kDataMessage = 0x03,
24 kDHKeyMessage = 0x0A,
25 kRevealSignatureMessage = 0x11,
26 kSignatureMessage = 0x12,
27
28 kInvalidMessage = 0xFF
29 } OTRMessageType;
30
31 #endif