1 securitydefs.inl |
1 /* |
|
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file |
|
24 @publishedAll |
|
25 @released |
|
26 |
|
27 |
|
28 |
|
29 @param aLeft |
|
30 @param aRight |
|
31 @return |
|
32 |
|
33 */ |
|
34 inline TKeyUsagePKCS15 operator|(TKeyUsagePKCS15 aLeft, TKeyUsagePKCS15 aRight) |
|
35 { |
|
36 return static_cast<TKeyUsagePKCS15>(static_cast<TUint>(aLeft) | static_cast<TUint>(aRight)); |
|
37 } |
|
38 |
|
39 |
|
40 /** |
|
41 * |
|
42 * |
|
43 * @param aLeft |
|
44 * @param aRight |
|
45 * @return |
|
46 */ |
|
47 inline TKeyUsagePKCS15 operator&(TKeyUsagePKCS15 aLeft, TKeyUsagePKCS15 aRight) |
|
48 { |
|
49 return static_cast<TKeyUsagePKCS15>(static_cast<TUint>(aLeft) & static_cast<TUint>(aRight)); |
|
50 } |
|
51 |
|
52 |
|
53 /** |
|
54 * |
|
55 * |
|
56 * @param aLeft |
|
57 * @param aRight |
|
58 * @return |
|
59 */ |
|
60 inline const TKeyUsagePKCS15& operator|=(TKeyUsagePKCS15& aLeft, TKeyUsagePKCS15 aRight) |
|
61 { |
|
62 aLeft = aLeft | aRight; |
|
63 return aLeft; |
|
64 } |
|
65 |
|
66 |
|
67 /** |
|
68 * |
|
69 * |
|
70 * @param aLeft |
|
71 * @param aRight |
|
72 * @return |
|
73 */ |
|
74 inline const TKeyUsagePKCS15& operator&=(TKeyUsagePKCS15& aLeft, TKeyUsagePKCS15 aRight) |
|
75 { |
|
76 aLeft = aLeft & aRight; |
|
77 return aLeft; |
|
78 } |
|
79 |
|
80 |
|
81 /** |
|
82 * |
|
83 * |
|
84 * @param aLeft |
|
85 * @param aRight |
|
86 * @return |
|
87 */ |
|
88 inline TKeyUsageX509 operator|(TKeyUsageX509 aLeft, TKeyUsageX509 aRight) |
|
89 { |
|
90 return static_cast<TKeyUsageX509>(static_cast<TUint>(aLeft) | static_cast<TUint>(aRight)); |
|
91 } |
|
92 |
|
93 |
|
94 /** |
|
95 * |
|
96 * |
|
97 * @param aLeft |
|
98 * @param aRight |
|
99 * @return |
|
100 */ |
|
101 inline TKeyUsageX509 operator&(TKeyUsageX509 aLeft, TKeyUsageX509 aRight) |
|
102 { |
|
103 return static_cast<TKeyUsageX509>(static_cast<TUint>(aLeft) & static_cast<TUint>(aRight)); |
|
104 } |
|
105 |
|
106 |
|
107 /** |
|
108 * |
|
109 * |
|
110 * @param aLeft |
|
111 * @param aRight |
|
112 * @return |
|
113 */ |
|
114 inline const TKeyUsageX509& operator|=(TKeyUsageX509& aLeft, TKeyUsageX509 aRight) |
|
115 { |
|
116 aLeft = aLeft | aRight; |
|
117 return aLeft; |
|
118 } |
|
119 |
|
120 |
|
121 /** |
|
122 * |
|
123 * |
|
124 * @param aLeft |
|
125 * @param aRight |
|
126 * @return |
|
127 */ |
|
128 inline const TKeyUsageX509& operator&=(TKeyUsageX509& aLeft, TKeyUsageX509 aRight) |
|
129 { |
|
130 aLeft = aLeft & aRight; |
|
131 return aLeft; |
|
132 } |