1 /* 2 * Copyright (C) 2017 Red Hat, Inc. 3 * 4 * Author: Nikos Mavrogiannopoulos 5 * 6 * This file is part of GnuTLS. 7 * 8 * The GnuTLS is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU Lesser General Public License 10 * as published by the Free Software Foundation; either version 2.1 of 11 * the License, or (at your option) any later version. 12 * 13 * This library is distributed in the hope that it will be useful, but 14 * WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * Lesser General Public License for more details. 17 * 18 * You should have received a copy of the GNU Lesser General Public License 19 * along with this program. If not, see <https://www.gnu.org/licenses/> 20 * 21 */ 22 23 #ifndef GNUTLS_TESTS_OCSP_COMMON_H 24 #define GNUTLS_TESTS_OCSP_COMMON_H 25 26 #if defined __clang__ || __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) 27 # pragma GCC diagnostic push 28 # pragma GCC diagnostic ignored "-Wunused-variable" 29 #endif 30 31 /* Date for responses to be valid */ 32 #define OCSP_RESP_DATE 1508329639 33 34 /* ocsp response with unknown status for 35 * server_ca3_localhost6_cert. Signed with 36 * RSA-SHA256. 37 */ 38 static const char _ocsp_ca3_localhost6_unknown[] = { 39 0x30, 0x82, 0x02, 0x3A, 0x0A, 0x01, 0x00, 0xA0, 40 0x82, 0x02, 0x33, 0x30, 0x82, 0x02, 0x2F, 0x06, 41 0x09, 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 42 0x01, 0x01, 0x04, 0x82, 0x02, 0x20, 0x30, 0x82, 43 0x02, 0x1C, 0x30, 0x81, 0x85, 0xA1, 0x14, 0x30, 44 0x12, 0x31, 0x10, 0x30, 0x0E, 0x06, 0x03, 0x55, 45 0x04, 0x03, 0x13, 0x07, 0x73, 0x75, 0x62, 0x43, 46 0x41, 0x2D, 0x33, 0x18, 0x0F, 0x32, 0x30, 0x31, 47 0x37, 0x31, 0x30, 0x31, 0x38, 0x31, 0x32, 0x32, 48 0x30, 0x34, 0x39, 0x5A, 0x30, 0x5C, 0x30, 0x5A, 49 0x30, 0x45, 0x30, 0x09, 0x06, 0x05, 0x2B, 0x0E, 50 0x03, 0x02, 0x1A, 0x05, 0x00, 0x04, 0x14, 0xB2, 51 0xE6, 0x5C, 0x8E, 0x6E, 0x83, 0x4B, 0xBD, 0x11, 52 0xD9, 0x97, 0xFA, 0x36, 0x93, 0x59, 0x9E, 0xAD, 53 0x5C, 0x15, 0xC4, 0x04, 0x14, 0x9E, 0x91, 0xEC, 54 0x8C, 0xAA, 0x24, 0x5B, 0x22, 0xE0, 0xE8, 0x11, 55 0xE8, 0xE9, 0xA4, 0x91, 0xB5, 0x91, 0x26, 0x00, 56 0xF1, 0x02, 0x0C, 0x57, 0xA3, 0x1D, 0x32, 0x37, 57 0x64, 0x58, 0xFA, 0x7B, 0x52, 0x6F, 0xD7, 0x82, 58 0x00, 0x18, 0x0F, 0x32, 0x30, 0x31, 0x37, 0x31, 59 0x30, 0x31, 0x38, 0x31, 0x32, 0x32, 0x30, 0x34, 60 0x39, 0x5A, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 61 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0B, 0x05, 62 0x00, 0x03, 0x82, 0x01, 0x81, 0x00, 0x98, 0x3C, 63 0xFF, 0xD1, 0x76, 0x93, 0xB0, 0xDD, 0x42, 0xCA, 64 0x8C, 0x7D, 0x4F, 0x9F, 0xE7, 0x78, 0x14, 0x1D, 65 0x90, 0x25, 0x67, 0x34, 0x51, 0x3C, 0xF6, 0x10, 66 0x7E, 0xB9, 0x8C, 0x19, 0xF4, 0x9A, 0x32, 0x6A, 67 0xFD, 0x5B, 0x77, 0xE9, 0x0A, 0xB2, 0xCD, 0x31, 68 0x5E, 0x0F, 0x5B, 0x11, 0xA7, 0x75, 0x38, 0x7B, 69 0x01, 0xFA, 0x2B, 0x68, 0x2C, 0x14, 0x6F, 0xAF, 70 0x90, 0xC9, 0x69, 0x67, 0x13, 0x70, 0x78, 0x51, 71 0x44, 0x0B, 0xA6, 0x16, 0x84, 0x6B, 0x09, 0xC3, 72 0x27, 0xFF, 0x06, 0x25, 0x90, 0x27, 0x08, 0x87, 73 0x23, 0xCB, 0x1A, 0x56, 0x61, 0x9E, 0x28, 0x9C, 74 0x42, 0x19, 0xEA, 0x93, 0x7C, 0x05, 0x14, 0x04, 75 0x7F, 0xC7, 0x1C, 0x40, 0xDD, 0x35, 0xC6, 0x50, 76 0x79, 0x46, 0xD7, 0x6A, 0xB1, 0x59, 0xAF, 0xC6, 77 0xDA, 0x0C, 0xD2, 0x1B, 0xAC, 0x3B, 0x46, 0x09, 78 0x0E, 0x7B, 0x02, 0xC3, 0x01, 0x55, 0x5E, 0xE9, 79 0x4F, 0x10, 0x58, 0x16, 0xB8, 0x54, 0xA8, 0x54, 80 0xBB, 0x31, 0xEB, 0x99, 0x64, 0x73, 0xEE, 0x3F, 81 0x44, 0xCE, 0xBB, 0xF9, 0x0A, 0xDB, 0x36, 0x90, 82 0x51, 0x80, 0xAA, 0xE1, 0x6F, 0xC3, 0x00, 0x13, 83 0x65, 0x80, 0x36, 0x3A, 0x63, 0x48, 0x05, 0x52, 84 0x7F, 0x91, 0x96, 0xB0, 0x7F, 0x53, 0xFC, 0x5D, 85 0x87, 0x0C, 0x6E, 0x5C, 0xAC, 0x0A, 0x45, 0x22, 86 0x83, 0x72, 0xC0, 0xAF, 0x5E, 0xDB, 0x5C, 0xE4, 87 0xA9, 0x80, 0x16, 0x43, 0xAB, 0x55, 0x72, 0x9B, 88 0x37, 0x41, 0xBB, 0xEF, 0x20, 0x45, 0xD5, 0xCB, 89 0xF8, 0xCE, 0xA9, 0x50, 0x12, 0x79, 0xAC, 0x6E, 90 0xC0, 0x79, 0xA4, 0x74, 0x1C, 0xF8, 0x48, 0xD4, 91 0xFC, 0xDC, 0xBB, 0xDA, 0x36, 0x72, 0x46, 0x05, 92 0x32, 0x97, 0x4C, 0x6B, 0xA4, 0x3C, 0xA0, 0x0E, 93 0xB7, 0xAC, 0x49, 0xA4, 0x52, 0xF0, 0xAC, 0xD5, 94 0x8D, 0x86, 0x07, 0xDB, 0xC3, 0x67, 0xE4, 0x95, 95 0x62, 0x52, 0x33, 0x33, 0x2D, 0x00, 0x49, 0x23, 96 0xCC, 0x12, 0x62, 0xFB, 0x89, 0x27, 0xD5, 0x27, 97 0xCB, 0x75, 0xC4, 0xCB, 0x60, 0x17, 0xFD, 0x4E, 98 0x7A, 0x2A, 0xD7, 0x0B, 0x09, 0x84, 0x03, 0x20, 99 0x38, 0x53, 0x73, 0x71, 0x66, 0xFC, 0x64, 0x9C, 100 0x6E, 0x1A, 0x1E, 0xC5, 0x5E, 0x0C, 0xAD, 0x9D, 101 0xE3, 0x37, 0xF2, 0xC2, 0xFC, 0xA1, 0x31, 0x26, 102 0x2C, 0xA1, 0xDF, 0x05, 0x19, 0xD6, 0x18, 0xE8, 103 0x25, 0x7C, 0x23, 0x23, 0xDE, 0x89, 0x6F, 0x5E, 104 0x98, 0xE8, 0xB6, 0xB2, 0x25, 0x28, 0x30, 0x12, 105 0x19, 0xB1, 0x84, 0x95, 0x8F, 0x8F, 0x65, 0x75, 106 0x2D, 0x90, 0xA8, 0x8D, 0xD9, 0xC3, 0x40, 0x79, 107 0xC8, 0xC8, 0xA1, 0xDC, 0xD0, 0x16, 0x02, 0xFE, 108 0x60, 0xBE, 0xA3, 0x58, 0xA2, 0xC4, 0xBA, 0xE5, 109 0x86, 0x4F, 0xF3, 0x2F, 0x46, 0xB9, 0x62, 0x2F, 110 0xCD, 0xE4, 0x1A, 0x62, 0x83, 0x76 111 }; 112 113 const char _ocsp_ca3_localhost6_unknown_pem[] = 114 "-----BEGIN OCSP RESPONSE-----\n" 115 "MIICOgoBAKCCAjMwggIvBgkrBgEFBQcwAQEEggIgMIICHDCBhaEUMBIxEDAOBgNV\n" 116 "BAMTB3N1YkNBLTMYDzIwMTcxMDE4MTIyMDQ5WjBcMFowRTAJBgUrDgMCGgUABBSy\n" 117 "5lyOboNLvRHZl/o2k1merVwVxAQUnpHsjKokWyLg6BHo6aSRtZEmAPECDFejHTI3\n" 118 "ZFj6e1Jv14IAGA8yMDE3MTAxODEyMjA0OVowDQYJKoZIhvcNAQELBQADggGBAJg8\n" 119 "/9F2k7DdQsqMfU+f53gUHZAlZzRRPPYQfrmMGfSaMmr9W3fpCrLNMV4PWxGndTh7\n" 120 "AforaCwUb6+QyWlnE3B4UUQLphaEawnDJ/8GJZAnCIcjyxpWYZ4onEIZ6pN8BRQE\n" 121 "f8ccQN01xlB5RtdqsVmvxtoM0husO0YJDnsCwwFVXulPEFgWuFSoVLsx65lkc+4/\n" 122 "RM67+QrbNpBRgKrhb8MAE2WANjpjSAVSf5GWsH9T/F2HDG5crApFIoNywK9e21zk\n" 123 "qYAWQ6tVcps3QbvvIEXVy/jOqVASeaxuwHmkdBz4SNT83LvaNnJGBTKXTGukPKAO\n" 124 "t6xJpFLwrNWNhgfbw2fklWJSMzMtAEkjzBJi+4kn1SfLdcTLYBf9Tnoq1wsJhAMg\n" 125 "OFNzcWb8ZJxuGh7FXgytneM38sL8oTEmLKHfBRnWGOglfCMj3olvXpjotrIlKDAS\n" 126 "GbGElY+PZXUtkKiN2cNAecjIodzQFgL+YL6jWKLEuuWGT/MvRrliL83kGmKDdg==\n" 127 "-----END OCSP RESPONSE-----"; 128 129 static gnutls_datum_t ocsp_ca3_localhost6_unknown = { 130 (void *)_ocsp_ca3_localhost6_unknown, 131 sizeof(_ocsp_ca3_localhost6_unknown) 132 }; 133 134 static gnutls_datum_t ocsp_ca3_localhost6_unknown_pem = { 135 (void *)_ocsp_ca3_localhost6_unknown_pem, 136 sizeof(_ocsp_ca3_localhost6_unknown_pem)-1 137 }; 138 139 /* ocsp response with unknown status for 140 * server_ca3_localhost_cert. Signed with 141 * RSA-SHA512. 142 */ 143 static const char _ocsp_ca3_localhost_unknown[] = { 144 0x30, 0x82, 0x06, 0x53, 0x0A, 0x01, 0x00, 0xA0, 145 0x82, 0x06, 0x4C, 0x30, 0x82, 0x06, 0x48, 0x06, 146 0x09, 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 147 0x01, 0x01, 0x04, 0x82, 0x06, 0x39, 0x30, 0x82, 148 0x06, 0x35, 0x30, 0x81, 0x85, 0xA1, 0x14, 0x30, 149 0x12, 0x31, 0x10, 0x30, 0x0E, 0x06, 0x03, 0x55, 150 0x04, 0x03, 0x13, 0x07, 0x73, 0x75, 0x62, 0x43, 151 0x41, 0x2D, 0x33, 0x18, 0x0F, 0x32, 0x30, 0x31, 152 0x37, 0x31, 0x30, 0x31, 0x38, 0x31, 0x32, 0x30, 153 0x39, 0x33, 0x30, 0x5A, 0x30, 0x5C, 0x30, 0x5A, 154 0x30, 0x45, 0x30, 0x09, 0x06, 0x05, 0x2B, 0x0E, 155 0x03, 0x02, 0x1A, 0x05, 0x00, 0x04, 0x14, 0xB2, 156 0xE6, 0x5C, 0x8E, 0x6E, 0x83, 0x4B, 0xBD, 0x11, 157 0xD9, 0x97, 0xFA, 0x36, 0x93, 0x59, 0x9E, 0xAD, 158 0x5C, 0x15, 0xC4, 0x04, 0x14, 0x9E, 0x91, 0xEC, 159 0x8C, 0xAA, 0x24, 0x5B, 0x22, 0xE0, 0xE8, 0x11, 160 0xE8, 0xE9, 0xA4, 0x91, 0xB5, 0x91, 0x26, 0x00, 161 0xF1, 0x02, 0x0C, 0x57, 0xA3, 0x1D, 0x32, 0x36, 162 0xC8, 0x0C, 0xA1, 0xCA, 0xB0, 0xBD, 0xF6, 0x82, 163 0x00, 0x18, 0x0F, 0x32, 0x30, 0x31, 0x37, 0x31, 164 0x30, 0x31, 0x38, 0x31, 0x32, 0x30, 0x39, 0x33, 165 0x30, 0x5A, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 166 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0D, 0x05, 167 0x00, 0x03, 0x82, 0x01, 0x81, 0x00, 0x56, 0x64, 168 0x2B, 0x10, 0xAA, 0xE7, 0x26, 0x7F, 0xF1, 0x7F, 169 0x86, 0x97, 0x0E, 0x18, 0xB4, 0x75, 0x92, 0x65, 170 0x12, 0x2B, 0x46, 0x9F, 0x3E, 0x96, 0x98, 0xE4, 171 0xAB, 0x10, 0xD1, 0x0E, 0xEA, 0x08, 0xE2, 0xA5, 172 0x01, 0x75, 0xA4, 0x5B, 0x76, 0xAC, 0x49, 0x2B, 173 0x9E, 0xF1, 0x4A, 0xF2, 0x79, 0x3A, 0x4E, 0x15, 174 0x81, 0xFF, 0x4D, 0xD3, 0x65, 0x8E, 0xAE, 0x4A, 175 0xBB, 0x33, 0x35, 0x8B, 0x0F, 0xB6, 0x5D, 0x32, 176 0xEF, 0xF5, 0xE1, 0x25, 0xBF, 0xBD, 0x52, 0x1D, 177 0x99, 0xF2, 0x34, 0xE0, 0xFB, 0x38, 0x34, 0x6C, 178 0x9A, 0xEF, 0x53, 0xB2, 0x90, 0xC6, 0xFB, 0x75, 179 0xA0, 0x8C, 0xBC, 0x6B, 0x8E, 0xD8, 0xDE, 0x33, 180 0xE4, 0x6F, 0xF2, 0xAD, 0xF2, 0xA2, 0x4F, 0xC2, 181 0x58, 0x47, 0xE2, 0x68, 0x6D, 0x3A, 0x3A, 0xB3, 182 0x0A, 0x82, 0x3D, 0xA4, 0x85, 0x00, 0x58, 0x3E, 183 0x00, 0x35, 0x9D, 0x6B, 0x1F, 0xFF, 0x9F, 0xAE, 184 0xB0, 0x9A, 0xE2, 0xC7, 0x0E, 0x9A, 0xB3, 0x7C, 185 0x52, 0xE9, 0xDA, 0x50, 0x57, 0x35, 0x72, 0x71, 186 0x81, 0xA7, 0xC0, 0x40, 0x28, 0xEA, 0x2B, 0xCE, 187 0x09, 0x47, 0x1D, 0xB1, 0x80, 0x41, 0x59, 0xF6, 188 0x5D, 0xD3, 0x3C, 0xEA, 0x11, 0xD8, 0x13, 0xB9, 189 0x0F, 0x32, 0x6A, 0x29, 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 0x82, 0xD9, 0xB6, 0xA7, 0xD5, 0x76, 0xE0, 212 0x23, 0x09, 0x2B, 0x9A, 0x7C, 0x7C, 0xB5, 0x6D, 213 0x84, 0x9D, 0x1F, 0x47, 0x0C, 0x9C, 0xD6, 0x86, 214 0x2B, 0xDD, 0xF4, 0xFA, 0x97, 0xE7, 0x72, 0xE7, 215 0x42, 0x52, 0x74, 0xE8, 0x4D, 0x01, 0xA0, 0x82, 216 0x04, 0x15, 0x30, 0x82, 0x04, 0x11, 0x30, 0x82, 217 0x04, 0x0D, 0x30, 0x82, 0x02, 0x75, 0xA0, 0x03, 218 0x02, 0x01, 0x02, 0x02, 0x0C, 0x57, 0xA3, 0x1D, 219 0x32, 0x35, 0xB3, 0x4F, 0xD0, 0xB9, 0xF5, 0xE7, 220 0x3C, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 221 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0B, 0x05, 0x00, 222 0x30, 0x0F, 0x31, 0x0D, 0x30, 0x0B, 0x06, 0x03, 223 0x55, 0x04, 0x03, 0x13, 0x04, 0x43, 0x41, 0x2D, 224 0x33, 0x30, 0x20, 0x17, 0x0D, 0x31, 0x36, 0x30, 225 0x35, 0x31, 0x30, 0x30, 0x38, 0x34, 0x38, 0x33, 226 0x30, 0x5A, 0x18, 0x0F, 0x39, 0x39, 0x39, 0x39, 227 0x31, 0x32, 0x33, 0x31, 0x32, 0x33, 0x35, 0x39, 228 0x35, 0x39, 0x5A, 0x30, 0x12, 0x31, 0x10, 0x30, 229 0x0E, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x07, 230 0x73, 0x75, 0x62, 0x43, 0x41, 0x2D, 0x33, 0x30, 231 0x82, 0x01, 0xA2, 0x30, 0x0D, 0x06, 0x09, 0x2A, 232 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01, 233 0x05, 0x00, 0x03, 0x82, 0x01, 0x8F, 0x00, 0x30, 234 0x82, 0x01, 0x8A, 0x02, 0x82, 0x01, 0x81, 0x00, 235 0xA0, 0x39, 0xC3, 0x57, 0xCD, 0x2B, 0x4E, 0x9D, 236 0x11, 0x68, 0x8B, 0x4E, 0x5A, 0x31, 0x12, 0xDE, 237 0x30, 0x1E, 0x39, 0x5F, 0x86, 0xB6, 0xB2, 0xB4, 238 0x81, 0xBA, 0x5D, 0xD4, 0x2F, 0x10, 0xD2, 0x1A, 239 0x32, 0x0F, 0xD0, 0x41, 0x25, 0xFF, 0xF5, 0xF6, 240 0x58, 0xB8, 0xA8, 0xA5, 0xEF, 0xF1, 0x34, 0xBF, 241 0x1B, 0x3C, 0x24, 0x69, 0x23, 0x5B, 0x12, 0x55, 242 0x79, 0x7C, 0x1D, 0xBD, 0x5C, 0x2B, 0x7A, 0x96, 243 0x34, 0x66, 0xB3, 0x56, 0x60, 0xBB, 0xC5, 0x6D, 244 0x3B, 0x37, 0x12, 0xF6, 0xE8, 0x8F, 0x3A, 0x7B, 245 0x7F, 0xC1, 0x55, 0x19, 0xEA, 0xF2, 0x2A, 0x15, 246 0xB6, 0xF3, 0xD0, 0xC0, 0x4A, 0x6F, 0xB8, 0x8F, 247 0x05, 0xF7, 0xBC, 0x75, 0xBC, 0xBF, 0xE7, 0xF9, 248 0xC7, 0xDC, 0x76, 0x43, 0x7B, 0xEC, 0xD4, 0x9C, 249 0xAF, 0x90, 0xBD, 0x8C, 0x73, 0x15, 0x8A, 0x84, 250 0x6F, 0x0B, 0xEA, 0x8A, 0xCF, 0xD6, 0xD4, 0x07, 251 0x1E, 0x43, 0x4B, 0x24, 0x95, 0xEB, 0xA3, 0xD1, 252 0xE7, 0xEC, 0x06, 0xB0, 0x90, 0xEF, 0x91, 0xFB, 253 0x26, 0x8D, 0x53, 0xA0, 0xAA, 0x24, 0xE5, 0x49, 254 0x64, 0x12, 0xE4, 0x6D, 0xE7, 0x30, 0xCA, 0xB4, 255 0x46, 0x2C, 0x6C, 0x73, 0x97, 0x4F, 0xE5, 0x6C, 256 0xA0, 0x91, 0xB7, 0x61, 0xF7, 0xEE, 0x39, 0x50, 257 0x2B, 0x4E, 0x6D, 0xC9, 0xC7, 0x00, 0x12, 0x6B, 258 0x3F, 0xE1, 0xAD, 0x2E, 0x21, 0xB4, 0x00, 0xE5, 259 0x31, 0xEA, 0x83, 0xF3, 0x3E, 0xD7, 0x99, 0x2F, 260 0x5D, 0xDE, 0xAD, 0x65, 0xE0, 0xEF, 0x36, 0x2E, 261 0xB1, 0x36, 0xAB, 0x8F, 0xDA, 0xD3, 0x71, 0xDB, 262 0x20, 0x47, 0xF2, 0x26, 0xD6, 0x62, 0x33, 0x98, 263 0x3D, 0xA2, 0xEC, 0x68, 0x49, 0xA3, 0x81, 0xA3, 264 0xD1, 0x29, 0x37, 0x46, 0xAF, 0x77, 0x27, 0x27, 265 0x80, 0xF8, 0x0C, 0xB9, 0x50, 0xF9, 0xAA, 0x72, 266 0x6F, 0x9D, 0xA9, 0x7D, 0x34, 0x6F, 0x8F, 0x4C, 267 0x4D, 0x3B, 0xF8, 0x1A, 0xD3, 0xB9, 0xDE, 0x42, 268 0xD0, 0x48, 0x25, 0xD8, 0x14, 0x9F, 0x7A, 0x8D, 269 0xC3, 0x22, 0x5C, 0xCC, 0xC1, 0x14, 0x90, 0xF5, 270 0x44, 0xEB, 0x1D, 0x93, 0x85, 0x94, 0x79, 0xDF, 271 0xED, 0x24, 0xC1, 0xDF, 0x7E, 0xDB, 0x43, 0xCF, 272 0xD8, 0xF7, 0x59, 0xCB, 0x97, 0xF4, 0xCD, 0xA7, 273 0xCD, 0x34, 0xF6, 0xC6, 0x56, 0xAE, 0xA2, 0x48, 274 0xDB, 0x10, 0x08, 0x51, 0x0D, 0x1C, 0x39, 0x7F, 275 0x10, 0x85, 0x66, 0x1E, 0xD3, 0x6E, 0x66, 0x87, 276 0xE2, 0xFC, 0xAC, 0x0C, 0xEF, 0x54, 0x65, 0x75, 277 0x44, 0x5D, 0x22, 0xCA, 0xA2, 0x74, 0x36, 0x2E, 278 0x6C, 0xAC, 0xA3, 0x8F, 0x2C, 0xFC, 0x6D, 0xF4, 279 0x56, 0x69, 0x52, 0x8E, 0xD3, 0xED, 0x26, 0xA4, 280 0x6C, 0xBF, 0xFA, 0x0F, 0xA4, 0x23, 0xBF, 0x73, 281 0x40, 0xFA, 0x06, 0xB9, 0x07, 0x57, 0x9E, 0x41, 282 0xE3, 0xCC, 0x5F, 0x9B, 0x22, 0x05, 0x8E, 0x01, 283 0x02, 0x03, 0x01, 0x00, 0x01, 0xA3, 0x64, 0x30, 284 0x62, 0x30, 0x0F, 0x06, 0x03, 0x55, 0x1D, 0x13, 285 0x01, 0x01, 0xFF, 0x04, 0x05, 0x30, 0x03, 0x01, 286 0x01, 0xFF, 0x30, 0x0F, 0x06, 0x03, 0x55, 0x1D, 287 0x0F, 0x01, 0x01, 0xFF, 0x04, 0x05, 0x03, 0x03, 288 0x07, 0x06, 0x00, 0x30, 0x1D, 0x06, 0x03, 0x55, 289 0x1D, 0x0E, 0x04, 0x16, 0x04, 0x14, 0x2D, 0x33, 290 0x04, 0x1B, 0x27, 0x7F, 0x94, 0x04, 0x7C, 0xC7, 291 0xE3, 0x35, 0x4F, 0xE9, 0x25, 0xA4, 0x94, 0xE1, 292 0xB7, 0xA1, 0x30, 0x1F, 0x06, 0x03, 0x55, 0x1D, 293 0x23, 0x04, 0x18, 0x30, 0x16, 0x80, 0x14, 0xF9, 294 0xA8, 0x86, 0x19, 0x63, 0xB6, 0xA4, 0x14, 0x13, 295 0x60, 0x76, 0x0F, 0x01, 0x9A, 0x35, 0x36, 0xEF, 296 0xF1, 0xB4, 0xAF, 0x30, 0x0D, 0x06, 0x09, 0x2A, 297 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0B, 298 0x05, 0x00, 0x03, 0x82, 0x01, 0x81, 0x00, 0x32, 299 0x28, 0xB9, 0x1B, 0x1D, 0xFF, 0x77, 0xFE, 0x7C, 300 0xA0, 0x34, 0x72, 0xE5, 0xAD, 0x28, 0x3E, 0xF4, 301 0x21, 0x91, 0x4D, 0x1D, 0x29, 0xAE, 0xB5, 0x35, 302 0xF8, 0xE3, 0x3B, 0x3F, 0x6E, 0xAB, 0x13, 0x52, 303 0x8A, 0x52, 0xC9, 0x13, 0xB8, 0xC6, 0x24, 0xF6, 304 0x86, 0xDA, 0xD2, 0xAD, 0x0B, 0xF5, 0xD4, 0xD5, 305 0x86, 0xEA, 0x97, 0x6B, 0x6A, 0x41, 0x8E, 0xBC, 306 0x92, 0x88, 0x23, 0x2A, 0xCD, 0xF5, 0x40, 0x2E, 307 0x91, 0x16, 0x4A, 0x19, 0x00, 0x5A, 0x2E, 0x4C, 308 0x9B, 0x75, 0xD6, 0x4C, 0xDB, 0x81, 0x55, 0x8A, 309 0x7B, 0x00, 0xA4, 0xDF, 0xF3, 0xAB, 0x03, 0x4F, 310 0xD9, 0x91, 0x1A, 0xC0, 0x7C, 0x4D, 0x0F, 0x99, 311 0xAF, 0xCD, 0x21, 0x34, 0x70, 0x4C, 0x79, 0x93, 312 0xB1, 0x03, 0x9D, 0xBF, 0xF6, 0xF3, 0x47, 0xEC, 313 0x48, 0x3E, 0x18, 0xCA, 0xC4, 0xAA, 0xCA, 0xC8, 314 0x91, 0x4C, 0x1B, 0x9C, 0x5B, 0xF9, 0x0D, 0x0E, 315 0x29, 0x26, 0xDD, 0xF2, 0x40, 0xE9, 0x81, 0x85, 316 0x8A, 0xA1, 0xBE, 0x71, 0xDA, 0x3B, 0x0D, 0x62, 317 0x01, 0x03, 0xA7, 0xC9, 0xD8, 0x49, 0x14, 0xF8, 318 0xE5, 0x21, 0xB0, 0xED, 0xCE, 0xC5, 0x72, 0xE9, 319 0xA4, 0x5F, 0x3D, 0xA7, 0x03, 0xAA, 0xF9, 0x37, 320 0x06, 0xE7, 0x84, 0x42, 0xEF, 0x34, 0x52, 0xBC, 321 0x7F, 0x3B, 0x18, 0xF9, 0x02, 0x4A, 0x1D, 0xA0, 322 0x25, 0x27, 0xD0, 0x9C, 0x96, 0x58, 0x8F, 0xD4, 323 0xF8, 0xA2, 0x01, 0xC9, 0x76, 0x2D, 0x0A, 0x36, 324 0x81, 0xAC, 0xA0, 0x58, 0xD8, 0x83, 0xFA, 0x08, 325 0x27, 0xAB, 0x3C, 0xBB, 0x9E, 0xA6, 0xA6, 0xF6, 326 0xB8, 0x9E, 0x38, 0xE3, 0x07, 0x96, 0xCD, 0x64, 327 0x28, 0x50, 0x05, 0xAD, 0x6C, 0xB6, 0x83, 0xF7, 328 0x01, 0x85, 0x37, 0xD2, 0xFB, 0xFE, 0xD2, 0x86, 329 0x97, 0xB1, 0xEC, 0xD2, 0xB6, 0x18, 0x08, 0xAE, 330 0x8E, 0x05, 0x15, 0xD1, 0x36, 0x47, 0x13, 0x21, 331 0x19, 0xB7, 0xAB, 0xA6, 0xE2, 0x02, 0xD2, 0xF6, 332 0xFC, 0x14, 0x2A, 0xCF, 0xD1, 0xE1, 0x74, 0xBD, 333 0x54, 0xBF, 0xDB, 0x06, 0x57, 0xC0, 0xCB, 0x68, 334 0x40, 0x55, 0x37, 0x94, 0x7A, 0x38, 0x91, 0x04, 335 0x67, 0x93, 0x26, 0x4A, 0x81, 0xBB, 0xBF, 0x9C, 336 0xE0, 0x57, 0x6B, 0x08, 0x1C, 0x95, 0x85, 0xA7, 337 0x90, 0x01, 0x23, 0x18, 0xBB, 0xF9, 0x60, 0x6B, 338 0xC7, 0x9A, 0x18, 0xBD, 0x73, 0x25, 0xB2, 0x5E, 339 0xD8, 0x14, 0x16, 0x23, 0xBE, 0x78, 0x28, 0x36, 340 0x03, 0x4F, 0xDA, 0x8A, 0x36, 0xA1, 0xA5, 0x83, 341 0x2B, 0x2B, 0xE0, 0x05, 0x63, 0x7B, 0xBC, 0xF5, 342 0x63, 0x53, 0x10, 0xEF, 0x64, 0xA7, 0x7E, 0xBC, 343 0xD8, 0x49, 0x0C, 0x3A, 0x04, 0x1F, 0x39, 0x0A, 344 0xEA, 0xC1, 0xEA, 0x2A, 0x2E, 0xDD, 0x0F, 0x9E, 345 0x33, 0x8A, 0x38, 0x83, 0xFF, 0xB1, 0x18, 0x4B, 346 0x83, 0xA3, 0x43, 0x5E, 0xFF, 0xC8, 0xAB 347 }; 348 349 const char _ocsp_ca3_localhost_unknown_pem[] = 350 "-----BEGIN OCSP RESPONSE-----\n" 351 "MIICNwoBAKCCAjAwggIsBgkrBgEFBQcwAQEEggIdMIICGTCBgqERMA8xDTALBgNV\n" 352 "BAMTBENBLTMYDzIwMTcxMDE4MTIzODUyWjBcMFowRTAJBgUrDgMCGgUABBS3yg+r\n" 353 "3G+4sJZ6FayYCg8Z/qQS3gQUHoXtf55x+gidN0hDoBLv5arh44oCDFejHTI1s0/Q\n" 354 "ufXnPIIAGA8yMDE3MTAxODEyMzg1MlowDQYJKoZIhvcNAQELBQADggGBALMParB9\n" 355 "K97DlT4FmMdPScoT7oAAsar4XxKLU9+oraht7H+WTAYSpnCxh/ugR17G0jtzTzIw\n" 356 "nLQFAyR9MDYKp4Om4YqQ7r+43DiIqKVU25WcrVifUbtkR+LbjH+Bk1UHvFE8mCOX\n" 357 "ZB+cmQyjGap1RX0dnj2Wm48vUwqp71nA8AYcXL575xZ4rb9DDhaoV2h3S0Zlu4IN\n" 358 "btuDIVsxJ53kqkGjjVB4/R0RtqCXOI2ThMK3SfDWqwzF9tYA763VVXi+g+w3oyv4\n" 359 "ZtP8QUWOVUY4azpElX1wqoO8znUjxs1AzROLUeLPK8GMLVIZLP361J2kLgcj0Gdq\n" 360 "GIVH5N54p6bl5OgSUP3EdKbFRZyCVZ2n8Der3Cf9PtfvGV7Ze4Cv/CCN6rJkk54P\n" 361 "6auP6pEJg0ESGC5fop5HFCyVM+W/ot0A1cxN0+cHYlqB1NQholLqe3psDjJ2EoIK\n" 362 "LtN5dRLO6z5L74CwwiJ1SeLh8XyJtr/ee9RnFB56XCzO7lyhbHPx/VT6Qw==\n" 363 "-----END OCSP RESPONSE-----"; 364 365 static gnutls_datum_t ocsp_ca3_localhost_unknown = { 366 (void *)_ocsp_ca3_localhost_unknown, sizeof(_ocsp_ca3_localhost_unknown) 367 }; 368 369 static gnutls_datum_t ocsp_ca3_localhost_unknown_pem = { 370 (void *)_ocsp_ca3_localhost_unknown_pem, sizeof(_ocsp_ca3_localhost_unknown_pem) 371 }; 372 373 374 /* ocsp response with unknown status for 375 * server_ca3_localhost_cert. Signed with 376 * RSA-SHA1. 377 */ 378 static const char _ocsp_ca3_localhost_unknown_sha1[] = { 379 0x30, 0x82, 0x02, 0x3A, 0x0A, 0x01, 0x00, 0xA0, 380 0x82, 0x02, 0x33, 0x30, 0x82, 0x02, 0x2F, 0x06, 381 0x09, 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 382 0x01, 0x01, 0x04, 0x82, 0x02, 0x20, 0x30, 0x82, 383 0x02, 0x1C, 0x30, 0x81, 0x85, 0xA1, 0x14, 0x30, 384 0x12, 0x31, 0x10, 0x30, 0x0E, 0x06, 0x03, 0x55, 385 0x04, 0x03, 0x13, 0x07, 0x73, 0x75, 0x62, 0x43, 386 0x41, 0x2D, 0x33, 0x18, 0x0F, 0x32, 0x30, 0x31, 387 0x37, 0x31, 0x30, 0x31, 0x38, 0x31, 0x32, 0x32, 388 0x32, 0x30, 0x36, 0x5A, 0x30, 0x5C, 0x30, 0x5A, 389 0x30, 0x45, 0x30, 0x09, 0x06, 0x05, 0x2B, 0x0E, 390 0x03, 0x02, 0x1A, 0x05, 0x00, 0x04, 0x14, 0xB2, 391 0xE6, 0x5C, 0x8E, 0x6E, 0x83, 0x4B, 0xBD, 0x11, 392 0xD9, 0x97, 0xFA, 0x36, 0x93, 0x59, 0x9E, 0xAD, 393 0x5C, 0x15, 0xC4, 0x04, 0x14, 0x9E, 0x91, 0xEC, 394 0x8C, 0xAA, 0x24, 0x5B, 0x22, 0xE0, 0xE8, 0x11, 395 0xE8, 0xE9, 0xA4, 0x91, 0xB5, 0x91, 0x26, 0x00, 396 0xF1, 0x02, 0x0C, 0x57, 0xA3, 0x1D, 0x32, 0x36, 397 0xC8, 0x0C, 0xA1, 0xCA, 0xB0, 0xBD, 0xF6, 0x82, 398 0x00, 0x18, 0x0F, 0x32, 0x30, 0x31, 0x37, 0x31, 399 0x30, 0x31, 0x38, 0x31, 0x32, 0x32, 0x32, 0x30, 400 0x36, 0x5A, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 401 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x05, 0x05, 402 0x00, 0x03, 0x82, 0x01, 0x81, 0x00, 0x29, 0x91, 403 0xFA, 0x87, 0x8F, 0x4D, 0xC2, 0x25, 0x67, 0x4F, 404 0x2A, 0x39, 0xF9, 0xDA, 0x05, 0x4A, 0x8E, 0xBC, 405 0x72, 0xB7, 0x8B, 0xF1, 0x6C, 0x77, 0x5E, 0x2F, 406 0x0F, 0xA4, 0xEC, 0x7F, 0xD6, 0x63, 0xEA, 0x39, 407 0x17, 0x6F, 0xAA, 0x4B, 0x86, 0x46, 0x0E, 0xB2, 408 0xE1, 0x65, 0x1C, 0xEC, 0x97, 0x05, 0x00, 0x4D, 409 0xAC, 0xBA, 0xA5, 0xD4, 0x1B, 0xB8, 0x4A, 0x05, 410 0x94, 0x6C, 0xC9, 0xE1, 0x41, 0x5B, 0x44, 0x4F, 411 0x39, 0x9C, 0xF7, 0xAF, 0x04, 0x31, 0x1A, 0x5B, 412 0xF8, 0x5E, 0x42, 0xDA, 0xEA, 0xFF, 0x25, 0x67, 413 0x75, 0x3E, 0x46, 0xC4, 0x7D, 0x31, 0x74, 0xBD, 414 0x19, 0xFF, 0x11, 0x7F, 0x21, 0x39, 0x4D, 0xE3, 415 0x07, 0x2F, 0xF4, 0xF5, 0x6B, 0xE7, 0x10, 0xF8, 416 0x6C, 0x57, 0x7B, 0x83, 0x84, 0xCD, 0x3D, 0x61, 417 0xFD, 0x91, 0x87, 0x03, 0x03, 0xDD, 0x7A, 0x60, 418 0xF9, 0x1D, 0x82, 0xE9, 0xD9, 0x4B, 0xC9, 0xF2, 419 0x6F, 0xE5, 0x09, 0xCC, 0xEC, 0x63, 0xD7, 0xC1, 420 0xED, 0x54, 0x6D, 0x03, 0xC8, 0xC5, 0x92, 0xBC, 421 0x22, 0x11, 0xCD, 0x3A, 0x2E, 0x51, 0xCD, 0x5F, 422 0xA5, 0xB5, 0xA3, 0x5C, 0x8D, 0x54, 0x92, 0x85, 423 0x6B, 0x92, 0x2A, 0x23, 0x5E, 0xFB, 0x35, 0xFB, 424 0x23, 0xDA, 0x17, 0x16, 0x6D, 0xB2, 0xFB, 0xD8, 425 0x8D, 0x43, 0x9F, 0x36, 0xE9, 0x5E, 0xA2, 0xCB, 426 0xA5, 0x2D, 0xAE, 0xDD, 0x63, 0xFC, 0x53, 0x90, 427 0xB5, 0x54, 0x82, 0x7C, 0xBD, 0x08, 0xD7, 0x4E, 428 0xEA, 0x11, 0x84, 0x3C, 0x5B, 0x63, 0x06, 0xA5, 429 0x2C, 0x8B, 0x09, 0x13, 0xC7, 0x04, 0x5F, 0xAF, 430 0x73, 0xB1, 0x89, 0x40, 0x12, 0xEA, 0x9C, 0x56, 431 0xC6, 0x08, 0x39, 0xD4, 0xAA, 0x1F, 0xAF, 0x74, 432 0x78, 0xCC, 0x84, 0xC2, 0x8A, 0xE8, 0x0B, 0xCD, 433 0xD3, 0x2D, 0xCD, 0x98, 0x2E, 0x8D, 0xAB, 0x59, 434 0xFC, 0xCF, 0x4C, 0x1A, 0x30, 0xED, 0x8E, 0x3F, 435 0xF8, 0xC7, 0xBD, 0xE3, 0x64, 0x94, 0x0C, 0xFC, 436 0x24, 0x85, 0x35, 0x0A, 0x0E, 0x65, 0xA7, 0x2C, 437 0x0B, 0x80, 0xB9, 0xB0, 0x97, 0xA5, 0x70, 0xE0, 438 0x12, 0x86, 0x69, 0x74, 0x22, 0xEA, 0xE3, 0x11, 439 0x4B, 0x34, 0xB1, 0xFB, 0x24, 0xEE, 0x00, 0x73, 440 0x71, 0x33, 0x74, 0x62, 0x64, 0x10, 0xDD, 0x5A, 441 0x3A, 0x10, 0xA3, 0x8E, 0x36, 0x03, 0x0D, 0x17, 442 0xE3, 0x72, 0x29, 0xAE, 0x5A, 0xBD, 0x2E, 0xE0, 443 0xFD, 0xB1, 0xDF, 0x8F, 0x2C, 0x24, 0xCF, 0xB9, 444 0x10, 0x99, 0x68, 0xA2, 0x55, 0x01, 0x1E, 0xFB, 445 0x9B, 0x14, 0x4C, 0x1E, 0xB4, 0x59, 0x79, 0xB7, 446 0x8F, 0x07, 0x28, 0x3E, 0xB4, 0x2E, 0x8F, 0x91, 447 0x51, 0xFD, 0x8F, 0x12, 0x8D, 0xC6, 0x57, 0x7B, 448 0x87, 0xEF, 0x9C, 0x8B, 0x90, 0xD3, 0xA5, 0xB0, 449 0xBE, 0x4B, 0xFA, 0x33, 0x54, 0x87, 0x81, 0xCF, 450 0x96, 0x9A, 0xD3, 0xDC, 0xA9, 0xB6 451 }; 452 453 static gnutls_datum_t ocsp_ca3_localhost_unknown_sha1 = { 454 (void *)_ocsp_ca3_localhost_unknown_sha1, 455 sizeof(_ocsp_ca3_localhost_unknown_sha1) 456 }; 457 458 /* ocsp response with unknown status for 459 * subca3_cert_pem. Signed with 460 * RSA-SHA256. 461 */ 462 static const char _ocsp_subca3_unknown[] = { 463 0x30, 0x82, 0x02, 0x37, 0x0A, 0x01, 0x00, 0xA0, 464 0x82, 0x02, 0x30, 0x30, 0x82, 0x02, 0x2C, 0x06, 465 0x09, 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 466 0x01, 0x01, 0x04, 0x82, 0x02, 0x1D, 0x30, 0x82, 467 0x02, 0x19, 0x30, 0x81, 0x82, 0xA1, 0x11, 0x30, 468 0x0F, 0x31, 0x0D, 0x30, 0x0B, 0x06, 0x03, 0x55, 469 0x04, 0x03, 0x13, 0x04, 0x43, 0x41, 0x2D, 0x33, 470 0x18, 0x0F, 0x32, 0x30, 0x31, 0x37, 0x31, 0x30, 471 0x31, 0x38, 0x31, 0x32, 0x33, 0x38, 0x35, 0x32, 472 0x5A, 0x30, 0x5C, 0x30, 0x5A, 0x30, 0x45, 0x30, 473 0x09, 0x06, 0x05, 0x2B, 0x0E, 0x03, 0x02, 0x1A, 474 0x05, 0x00, 0x04, 0x14, 0xB7, 0xCA, 0x0F, 0xAB, 475 0xDC, 0x6F, 0xB8, 0xB0, 0x96, 0x7A, 0x15, 0xAC, 476 0x98, 0x0A, 0x0F, 0x19, 0xFE, 0xA4, 0x12, 0xDE, 477 0x04, 0x14, 0x1E, 0x85, 0xED, 0x7F, 0x9E, 0x71, 478 0xFA, 0x08, 0x9D, 0x37, 0x48, 0x43, 0xA0, 0x12, 479 0xEF, 0xE5, 0xAA, 0xE1, 0xE3, 0x8A, 0x02, 0x0C, 480 0x57, 0xA3, 0x1D, 0x32, 0x35, 0xB3, 0x4F, 0xD0, 481 0xB9, 0xF5, 0xE7, 0x3C, 0x82, 0x00, 0x18, 0x0F, 482 0x32, 0x30, 0x31, 0x37, 0x31, 0x30, 0x31, 0x38, 483 0x31, 0x32, 0x33, 0x38, 0x35, 0x32, 0x5A, 0x30, 484 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 485 0x0D, 0x01, 0x01, 0x0B, 0x05, 0x00, 0x03, 0x82, 486 0x01, 0x81, 0x00, 0xB3, 0x0F, 0x6A, 0xB0, 0x7D, 487 0x2B, 0xDE, 0xC3, 0x95, 0x3E, 0x05, 0x98, 0xC7, 488 0x4F, 0x49, 0xCA, 0x13, 0xEE, 0x80, 0x00, 0xB1, 489 0xAA, 0xF8, 0x5F, 0x12, 0x8B, 0x53, 0xDF, 0xA8, 490 0xAD, 0xA8, 0x6D, 0xEC, 0x7F, 0x96, 0x4C, 0x06, 491 0x12, 0xA6, 0x70, 0xB1, 0x87, 0xFB, 0xA0, 0x47, 492 0x5E, 0xC6, 0xD2, 0x3B, 0x73, 0x4F, 0x32, 0x30, 493 0x9C, 0xB4, 0x05, 0x03, 0x24, 0x7D, 0x30, 0x36, 494 0x0A, 0xA7, 0x83, 0xA6, 0xE1, 0x8A, 0x90, 0xEE, 495 0xBF, 0xB8, 0xDC, 0x38, 0x88, 0xA8, 0xA5, 0x54, 496 0xDB, 0x95, 0x9C, 0xAD, 0x58, 0x9F, 0x51, 0xBB, 497 0x64, 0x47, 0xE2, 0xDB, 0x8C, 0x7F, 0x81, 0x93, 498 0x55, 0x07, 0xBC, 0x51, 0x3C, 0x98, 0x23, 0x97, 499 0x64, 0x1F, 0x9C, 0x99, 0x0C, 0xA3, 0x19, 0xAA, 500 0x75, 0x45, 0x7D, 0x1D, 0x9E, 0x3D, 0x96, 0x9B, 501 0x8F, 0x2F, 0x53, 0x0A, 0xA9, 0xEF, 0x59, 0xC0, 502 0xF0, 0x06, 0x1C, 0x5C, 0xBE, 0x7B, 0xE7, 0x16, 503 0x78, 0xAD, 0xBF, 0x43, 0x0E, 0x16, 0xA8, 0x57, 504 0x68, 0x77, 0x4B, 0x46, 0x65, 0xBB, 0x82, 0x0D, 505 0x6E, 0xDB, 0x83, 0x21, 0x5B, 0x31, 0x27, 0x9D, 506 0xE4, 0xAA, 0x41, 0xA3, 0x8D, 0x50, 0x78, 0xFD, 507 0x1D, 0x11, 0xB6, 0xA0, 0x97, 0x38, 0x8D, 0x93, 508 0x84, 0xC2, 0xB7, 0x49, 0xF0, 0xD6, 0xAB, 0x0C, 509 0xC5, 0xF6, 0xD6, 0x00, 0xEF, 0xAD, 0xD5, 0x55, 510 0x78, 0xBE, 0x83, 0xEC, 0x37, 0xA3, 0x2B, 0xF8, 511 0x66, 0xD3, 0xFC, 0x41, 0x45, 0x8E, 0x55, 0x46, 512 0x38, 0x6B, 0x3A, 0x44, 0x95, 0x7D, 0x70, 0xAA, 513 0x83, 0xBC, 0xCE, 0x75, 0x23, 0xC6, 0xCD, 0x40, 514 0xCD, 0x13, 0x8B, 0x51, 0xE2, 0xCF, 0x2B, 0xC1, 515 0x8C, 0x2D, 0x52, 0x19, 0x2C, 0xFD, 0xFA, 0xD4, 516 0x9D, 0xA4, 0x2E, 0x07, 0x23, 0xD0, 0x67, 0x6A, 517 0x18, 0x85, 0x47, 0xE4, 0xDE, 0x78, 0xA7, 0xA6, 518 0xE5, 0xE4, 0xE8, 0x12, 0x50, 0xFD, 0xC4, 0x74, 519 0xA6, 0xC5, 0x45, 0x9C, 0x82, 0x55, 0x9D, 0xA7, 520 0xF0, 0x37, 0xAB, 0xDC, 0x27, 0xFD, 0x3E, 0xD7, 521 0xEF, 0x19, 0x5E, 0xD9, 0x7B, 0x80, 0xAF, 0xFC, 522 0x20, 0x8D, 0xEA, 0xB2, 0x64, 0x93, 0x9E, 0x0F, 523 0xE9, 0xAB, 0x8F, 0xEA, 0x91, 0x09, 0x83, 0x41, 524 0x12, 0x18, 0x2E, 0x5F, 0xA2, 0x9E, 0x47, 0x14, 525 0x2C, 0x95, 0x33, 0xE5, 0xBF, 0xA2, 0xDD, 0x00, 526 0xD5, 0xCC, 0x4D, 0xD3, 0xE7, 0x07, 0x62, 0x5A, 527 0x81, 0xD4, 0xD4, 0x21, 0xA2, 0x52, 0xEA, 0x7B, 528 0x7A, 0x6C, 0x0E, 0x32, 0x76, 0x12, 0x82, 0x0A, 529 0x2E, 0xD3, 0x79, 0x75, 0x12, 0xCE, 0xEB, 0x3E, 530 0x4B, 0xEF, 0x80, 0xB0, 0xC2, 0x22, 0x75, 0x49, 531 0xE2, 0xE1, 0xF1, 0x7C, 0x89, 0xB6, 0xBF, 0xDE, 532 0x7B, 0xD4, 0x67, 0x14, 0x1E, 0x7A, 0x5C, 0x2C, 533 0xCE, 0xEE, 0x5C, 0xA1, 0x6C, 0x73, 0xF1, 0xFD, 534 0x54, 0xFA, 0x43 535 }; 536 537 const char _ocsp_subca3_unknown_pem[] = 538 "-----BEGIN OCSP RESPONSE-----\n" 539 "MIIGUwoBAKCCBkwwggZIBgkrBgEFBQcwAQEEggY5MIIGNTCBhaEUMBIxEDAOB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gUV0TZHEyEZt6um4gLS9vwUKs/R4XS9VL/bBlfAy2hAVTeUejiRBGeTJkqBu7+c\n" 571 "4FdrCByVhaeQASMYu/lga8eaGL1zJbJe2BQWI754KDYDT9qKNqGlgysr4AVje7z1\n" 572 "Y1MQ72SnfrzYSQw6BB85CurB6iou3Q+eM4o4g/+xGEuDo0Ne/8ir\n" 573 "-----END OCSP RESPONSE-----\n"; 574 575 static gnutls_datum_t ocsp_subca3_unknown = { 576 (void *)_ocsp_subca3_unknown, sizeof(_ocsp_subca3_unknown) 577 }; 578 579 static gnutls_datum_t ocsp_subca3_unknown_pem = { 580 (void *)_ocsp_subca3_unknown_pem, sizeof(_ocsp_subca3_unknown_pem)-1 581 }; 582 583 /* ocsp response with good status for 584 * cli_ca3_cert. Signed with 585 * RSA-SHA256. 586 */ 587 588 const char _ocsp_cli_ca3_good_pem[] = 589 "-----BEGIN OCSP RESPONSE-----" 590 "MIIGPQoBAKCCBjYwggYyBgkrBgEFBQcwAQEEggYjMIIGHzCBgqERMA8xDTALBgNV" 591 "BAMTBENBLTMYDzIwMTkwOTIwMjAwMjMxWjBcMFowRTAJBgUrDgMCGgUABBSy5lyO" 592 "boNLvRHZl/o2k1merVwVxAQUnpHsjKokWyLg6BHo6aSRtZEmAPECDFejHTI2Wi75" 593 "obBaUoAAGA8yMDE5MDkyMDIwMDIzMVowDQYJKoZIhvcNAQELBQADggGBAC80EWal" 594 "PkJ29i/sZsO49hRolZXCMb1bjI0yxwhoH2Hk8Z0L41N0WFRphPqrDr8Dm3uRMcdx" 595 "n3xre+bxM0WL44mUMxptdYUcAwfb1M2gSQVhRvhvIfiMQZlkMYle4RPdVQN9nxmC" 596 "WbZD0WJmXQuYpFWYDVQkcL6f5Tlex5a8M/v/ihFBecs3wfstD1Bu4mD7nA8O/tGa" 597 "u0JQXxHnIM7FBOm73HccoxE5in307WEJtK1yTiUjwjlvl05hdWIzdydRToB6dNLL" 598 "MtgoFkKIX4aF6fkv1We4zooFdzlQanGdomp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QFAwMHBgAwHQYDVR0OBBYEFPmohhljtqQUE2B2DwGaNTbv8bSvMA0G" 615 "CSqGSIb3DQEBCwUAA4IBgQBhBi8dXQMtXH2oqcuHuEj9JkxraAsaJvc1WAoxbiqV" 616 "cJKcVSC0gvoCY3q+NQvuePzw5dzd5JBfkoIsP5U6ATWAUPPqCP+/jRnFqDQlH626" 617 "mhDGVS8W7Ee8z1KWqnKWGv5nkrZ6r3y9bVaNUmY7rytzuct1bI9YkX1kM66vgnU2" 618 "xeMIjDe36/wTtBRVFPSPpE3KL9hxCg3KgPSeSmmIhmQxJ1M6xe00314/GX3lTDt5" 619 "5UdMgmldl2LHV+0i1NPCgnuOEFVOiz2nHAnw2LNmvHEDDpPauz2Meeh9aaDeefIh" 620 "2u/wg39WRPhU1mYvmxvYZqA/jwSctiEhuKEBBZSOHxeTjplH1THlIziVnYyVW4sP" 621 "MiGUajXhTi47H219hx87+bldruOtirbDIslL9RGWqWAkMeGP+hUl1R2zvDukaqIK" 622 "qIN81/A/EeMoI6/IHb1BpgY2rGs/I/QTb3VTKqQUYv09Hi+itPCdKqamSm8dZMKK" 623 "aPA0fD9yskUMFPBhfj8BvXg=" 624 "-----END OCSP RESPONSE-----"; 625 626 static gnutls_datum_t ocsp_cli_ca3_good_pem = { 627 (void *)_ocsp_cli_ca3_good_pem, sizeof(_ocsp_cli_ca3_good_pem) 628 }; 629 630 const char _ocsp_cli_ca3_bad_pem[] = 631 "-----BEGIN OCSP RESPONSE-----" 632 "MIIGTgoBAKCCBkcwggZDBgkrBgEFBQcwAQEEggY0MIIGMDCBk6ERMA8xDTALBgNV" 633 "BAMTBENBLTMYDzIwMTkwOTIwMjAwMTIxWjBtMGswRTAJBgUrDgMCGgUABBSy5lyO" 634 "boNLvRHZl/o2k1merVwVxAQUnpHsjKokWyLg6BHo6aSRtZEmAPECDFejHTI2Wi75" 635 "obBaUqERGA8yMDE5MDUyMjEzNTEwMVoYDzIwMTkwOTIwMjAwMTIxWjANBgkqhkiG"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kX/ym+bIlHIEcZk7zfRoFjT4NxLZsspz" 652 "IyJZ84nDtaelo7vNIQLlYWCjiN2quhQFB2NA0JJJ2u3XJisCXVKPY8zFgVfgfnjk" 653 "+vawynAL0Cc+T3665xPUieP3rXmpu5eAXCGSCkrmmc+PMpoensRKUmPj90g9OaGW" 654 "3kFX4IuHu1IvNUut10ZT6izwmKdPjatp0nlXnUefQLUIchoUC4EJ3ldEde2spvtZ" 655 "yfAI7GVy+7H2Hn/zjsXjAgMBAAGjWDBWMA8GA1UdEwEB/wQFMAMBAf8wEwYDVR0l" 656 "BAwwCgYIKwYBBQUHAwkwDwYDVR0PAQH/BAUDAwcGADAdBgNVHQ4EFgQU+aiGGWO2" 657 "pBQTYHYPAZo1Nu/xtK8wDQYJKoZIhvcNAQELBQADggGBAGEGLx1dAy1cfaipy4e4" 658 "SP0mTGtoCxom9zVYCjFuKpVwkpxVILSC+gJjer41C+54/PDl3N3kkF+Sgiw/lToB" 659 "NYBQ8+oI/7+NGcWoNCUfrbqaEMZVLxbsR7zPUpaqcpYa/meStnqvfL1tVo1SZjuv" 660 "K3O5y3Vsj1iRfWQzrq+CdTbF4wiMN7fr/BO0FFUU9I+kTcov2HEKDcqA9J5KaYiG" 661 "ZDEnUzrF7TTfXj8ZfeVMO3nlR0yCaV2XYsdX7SLU08KCe44QVU6LPaccCfDYs2a8" 662 "cQMOk9q7PYx56H1poN558iHa7/CDf1ZE+FTWZi+bG9hmoD+PBJy2ISG4oQEFlI4f" 663 "F5OOmUfVMeUjOJWdjJVbiw8yIZRqNeFOLjsfbX2HHzv5uV2u462KtsMiyUv1EZap" 664 "YCQx4Y/6FSXVHbO8O6Rqogqog3zX8D8R4ygjr8gdvUGmBjasaz8j9BNvdVMqpBRi" 665 "/T0eL6K08J0qpqZKbx1kwopo8DR8P3KyRQwU8GF+PwG9eA==" 666 "-----END OCSP RESPONSE-----"; 667 668 static gnutls_datum_t ocsp_cli_ca3_bad_pem = { 669 (void *)_ocsp_cli_ca3_bad_pem, sizeof(_ocsp_cli_ca3_bad_pem) 670 }; 671 672 673 674 #if defined __clang__ || __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) 675 # pragma GCC diagnostic pop 676 #endif 677 678 #endif /* GNUTLS_TESTS_OCSP_COMMON_H */ 679