diff options
Diffstat (limited to 'networking/tls.c')
-rw-r--r-- | networking/tls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/tls.c b/networking/tls.c index db0034e66..db7be07f3 100644 --- a/networking/tls.c +++ b/networking/tls.c | |||
@@ -1387,12 +1387,12 @@ static void find_key_in_der_cert(tls_state_t *tls, uint8_t *der, int len) | |||
1387 | /* enter subjectPublicKeyInfo */ | 1387 | /* enter subjectPublicKeyInfo */ |
1388 | der = enter_der_item(der, &end); | 1388 | der = enter_der_item(der, &end); |
1389 | { /* check subjectPublicKeyInfo.algorithm */ | 1389 | { /* check subjectPublicKeyInfo.algorithm */ |
1390 | static const uint8_t OID_RSA_KEY_ALG[] = { | 1390 | static const uint8_t OID_RSA_KEY_ALG[] ALIGN1 = { |
1391 | 0x30,0x0d, // SEQ 13 bytes | 1391 | 0x30,0x0d, // SEQ 13 bytes |
1392 | 0x06,0x09, 0x2a,0x86,0x48,0x86,0xf7,0x0d,0x01,0x01,0x01, //OID_RSA_KEY_ALG 42.134.72.134.247.13.1.1.1 | 1392 | 0x06,0x09, 0x2a,0x86,0x48,0x86,0xf7,0x0d,0x01,0x01,0x01, //OID_RSA_KEY_ALG 42.134.72.134.247.13.1.1.1 |
1393 | //0x05,0x00, // NULL | 1393 | //0x05,0x00, // NULL |
1394 | }; | 1394 | }; |
1395 | static const uint8_t OID_ECDSA_KEY_ALG[] = { | 1395 | static const uint8_t OID_ECDSA_KEY_ALG[] ALIGN1 = { |
1396 | 0x30,0x13, // SEQ 0x13 bytes | 1396 | 0x30,0x13, // SEQ 0x13 bytes |
1397 | 0x06,0x07, 0x2a,0x86,0x48,0xce,0x3d,0x02,0x01, //OID_ECDSA_KEY_ALG 42.134.72.206.61.2.1 | 1397 | 0x06,0x07, 0x2a,0x86,0x48,0xce,0x3d,0x02,0x01, //OID_ECDSA_KEY_ALG 42.134.72.206.61.2.1 |
1398 | //allow any curve code for now... | 1398 | //allow any curve code for now... |
@@ -2083,7 +2083,7 @@ static void send_client_key_exchange(tls_state_t *tls) | |||
2083 | } | 2083 | } |
2084 | } | 2084 | } |
2085 | 2085 | ||
2086 | static const uint8_t rec_CHANGE_CIPHER_SPEC[] = { | 2086 | static const uint8_t rec_CHANGE_CIPHER_SPEC[] ALIGN1 = { |
2087 | RECORD_TYPE_CHANGE_CIPHER_SPEC, TLS_MAJ, TLS_MIN, 00, 01, | 2087 | RECORD_TYPE_CHANGE_CIPHER_SPEC, TLS_MAJ, TLS_MIN, 00, 01, |
2088 | 01 | 2088 | 01 |
2089 | }; | 2089 | }; |