Skip to content

Commit b4fe3cb

Browse files
committed
Rename to mbed TLS in the documentation/comments
1 parent 967a2a5 commit b4fe3cb

32 files changed

+73
-73
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ addons:
1919
coverity_scan:
2020
project:
2121
name: "polarssl/polarssl"
22-
description: "PolarSSL Open Source SSL Library"
22+
description: "mbed TLS Open Source SSL Library"
2323
notification_email: [email protected]
2424
build_command_prepend:
2525
build_command: make

DartConfiguration.tcl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Site: localhost
2-
BuildName: PolarSSL-test
2+
BuildName: mbed TLS-test
33
CoverageCommand: /usr/bin/gcov
44
MemoryCheckCommand: /usr/bin/valgrind

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ lcov:
7171
lcov --add-tracefile files.info --add-tracefile tests.info -o all.info
7272
lcov --remove all.info -o final.info '*.h'
7373
gendesc tests/Descriptions.txt -o descriptions
74-
genhtml --title PolarSSL --description-file descriptions --keep-descriptions --legend --no-branch-coverage -o Coverage final.info
74+
genhtml --title mbed TLS --description-file descriptions --keep-descriptions --legend --no-branch-coverage -o Coverage final.info
7575
rm -f files.info tests.info all.info final.info descriptions
7676

7777
apidoc:

README.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
===================
2-
README for PolarSSL
2+
README for mbed TLS
33
===================
44

55
Configuration
66
=============
77

8-
PolarSSL should build out of the box on most systems. Some platform specific options are available in the fully-documented configuration file *include/polarssl/config.h*, which is also the place where features can be selected.
8+
mbed TLS should build out of the box on most systems. Some platform specific options are available in the fully-documented configuration file *include/polarssl/config.h*, which is also the place where features can be selected.
99
This file can be edited manually, or in a more programmatic way using the Perl
1010
script *scripts/config.pl* (use *--help* for usage instructions).
1111

@@ -14,7 +14,7 @@ Compiler options can be set using standard variables such as *CC* and *CFLAGS* w
1414
Compiling
1515
=========
1616

17-
There are currently three active build systems within the PolarSSL releases:
17+
There are currently three active build systems within the mbed TLS releases:
1818

1919
- Make
2020
- CMake
@@ -35,7 +35,7 @@ In order to run the tests, enter::
3535

3636
make check
3737

38-
Depending on your platform, you might run into some issues. Please check the Makefiles in *library/*, *programs/* and *tests/* for options to manually add or remove for specific platforms. You can also check `the PolarSSL Knowledge Base <https://polarssl.org/kb>`_ for articles on your platform or issue.
38+
Depending on your platform, you might run into some issues. Please check the Makefiles in *library/*, *programs/* and *tests/* for options to manually add or remove for specific platforms. You can also check `the mbed TLS Knowledge Base <https://polarssl.org/kb>`_ for articles on your platform or issue.
3939

4040
In case you find that you need to do something else as well, please let us know what, so we can add it to the KB.
4141

@@ -101,7 +101,7 @@ We've included example programs for a lot of different features and uses in *pro
101101
Tests
102102
=====
103103

104-
PolarSSL includes an elaborate test suite in *tests/* that initially requires Perl to generate the tests files (e.g. *test_suite_mpi.c*). These files are generates from a **function file** (e.g. *suites/test_suite_mpi.function*) and a **data file** (e.g. *suites/test_suite_mpi.data*). The **function file** contains the template for each test function. The **data file** contains the test cases, specified as parameters that should be pushed into a template function.
104+
mbed TLS includes an elaborate test suite in *tests/* that initially requires Perl to generate the tests files (e.g. *test_suite_mpi.c*). These files are generates from a **function file** (e.g. *suites/test_suite_mpi.function*) and a **data file** (e.g. *suites/test_suite_mpi.data*). The **function file** contains the template for each test function. The **data file** contains the test cases, specified as parameters that should be pushed into a template function.
105105

106106
For machines with a Unix shell and OpenSSL (and optionnally GnuTLS) installed, additional test scripts are available:
107107

@@ -129,7 +129,7 @@ Process
129129
#. `Check for open issues <https://github.com/polarssl/polarssl/issues>`_ or
130130
`start a discussion <https://polarssl.org/discussions>`_ around a feature
131131
idea or a bug.
132-
#. Fork the `PolarSSL repository on Github <https://github.com/polarssl/polarssl>`_
132+
#. Fork the `mbed TLS repository on Github <https://github.com/polarssl/polarssl>`_
133133
to start making your changes.
134134
#. Write a test which shows that the bug was fixed or that the feature works
135135
as expected.

configs/README.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ them, you can pick one of the following methods:
2323
make
2424

2525
Note that the second method also works if you want to keep your custom
26-
configuration file outside the PolarSSL tree.
26+
configuration file outside the mbed TLS tree.

configs/config-ccm-psk-tls1_2.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
//#define POLARSSL_HAVE_TIME /* Optionally used in Hello messages */
1717
/* Other POLARSSL_HAVE_XXX flags irrelevant for this configuration */
1818

19-
/* PolarSSL feature support */
19+
/* mbed TLS feature support */
2020
#define POLARSSL_KEY_EXCHANGE_PSK_ENABLED
2121
#define POLARSSL_SSL_PROTO_TLS1_2
2222
#define POLARSSL_SSL_DISABLE_RENEGOTIATION
2323

24-
/* PolarSSL modules */
24+
/* mbed TLS modules */
2525
#define POLARSSL_AES_C
2626
#define POLARSSL_CCM_C
2727
#define POLARSSL_CIPHER_C

configs/config-mini-tls1_1.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
#define POLARSSL_HAVE_TIME
1414
#define POLARSSL_HAVE_IPV6
1515

16-
/* PolarSSL feature support */
16+
/* mbed TLS feature support */
1717
#define POLARSSL_CIPHER_MODE_CBC
1818
#define POLARSSL_PKCS1_V15
1919
#define POLARSSL_KEY_EXCHANGE_RSA_ENABLED
2020
#define POLARSSL_SSL_PROTO_TLS1_1
2121
#define POLARSSL_SSL_DISABLE_RENEGOTIATION
2222

23-
/* PolarSSL modules */
23+
/* mbed TLS modules */
2424
#define POLARSSL_AES_C
2525
#define POLARSSL_ASN1_PARSE_C
2626
#define POLARSSL_ASN1_WRITE_C

configs/config-picocoin.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#define POLARSSL_HAVE_TIME
1919
#define POLARSSL_HAVE_IPV6
2020

21-
/* PolarSSL feature support */
21+
/* mbed TLS feature support */
2222
#define POLARSSL_CIPHER_MODE_CBC
2323
#define POLARSSL_CIPHER_PADDING_PKCS7
2424
#define POLARSSL_ECP_DP_SECP256K1_ENABLED
@@ -27,7 +27,7 @@
2727
#define POLARSSL_ERROR_STRERROR_DUMMY
2828
#define POLARSSL_FS_IO
2929

30-
/* PolarSSL modules */
30+
/* mbed TLS modules */
3131
#define POLARSSL_AESNI_C
3232
#define POLARSSL_AES_C
3333
#define POLARSSL_ASN1_PARSE_C

configs/config-psk-rc4-tls1_0.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
//#define POLARSSL_HAVE_TIME /* Optionnaly used in Hello messages */
1717
/* Other POLARSSL_HAVE_XXX flags irrelevant for this configuration */
1818

19-
/* PolarSSL feature support */
19+
/* mbed TLS feature support */
2020
#define POLARSSL_KEY_EXCHANGE_PSK_ENABLED
2121
#define POLARSSL_SSL_PROTO_TLS1
2222
#define POLARSSL_SSL_DISABLE_RENEGOTIATION
2323

24-
/* PolarSSL modules */
24+
/* mbed TLS modules */
2525
#define POLARSSL_AES_C
2626
#define POLARSSL_ARC4_C
2727
#define POLARSSL_CIPHER_C

configs/config-suite-b.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
#define POLARSSL_HAVE_TIME
2121
#define POLARSSL_HAVE_IPV6
2222

23-
/* PolarSSL feature support */
23+
/* mbed TLS feature support */
2424
#define POLARSSL_ECP_DP_SECP256R1_ENABLED
2525
#define POLARSSL_ECP_DP_SECP384R1_ENABLED
2626
#define POLARSSL_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
2727
#define POLARSSL_SSL_PROTO_TLS1_2
2828
#define POLARSSL_SSL_DISABLE_RENEGOTIATION
2929

30-
/* PolarSSL modules */
30+
/* mbed TLS modules */
3131
#define POLARSSL_AES_C
3232
#define POLARSSL_ASN1_PARSE_C
3333
#define POLARSSL_ASN1_WRITE_C

doxygen/input/doc_mainpage.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@
44
*/
55

66
/**
7-
* @mainpage PolarSSL v1.3.9 source code documentation
7+
* @mainpage mbed TLS v1.3.9 source code documentation
88
*
9-
* This documentation describes the internal structure of PolarSSL. It was
9+
* This documentation describes the internal structure of mbed TLS. It was
1010
* automatically generated from specially formatted comment blocks in
11-
* PolarSSL's source code using Doxygen. (See
11+
* mbed TLS's source code using Doxygen. (See
1212
* http://www.stack.nl/~dimitri/doxygen/ for more information on Doxygen)
1313
*
14-
* PolarSSL has a simple setup: it provides the ingredients for an SSL/TLS
14+
* mbed TLS has a simple setup: it provides the ingredients for an SSL/TLS
1515
* implementation. These ingredients are listed as modules in the
1616
* \ref mainpage_modules "Modules section". This "Modules section" introduces
1717
* the high-level module concepts used throughout this documentation.\n
18-
* Some examples of PolarSSL usage can be found in the \ref mainpage_examples
18+
* Some examples of mbed TLS usage can be found in the \ref mainpage_examples
1919
* "Examples section".
2020
*
2121
* @section mainpage_modules Modules
2222
*
23-
* PolarSSL supports SSLv3 up to TLSv1.2 communication by providing the
23+
* mbed TLS supports SSLv3 up to TLSv1.2 communication by providing the
2424
* following:
2525
* - TCP/IP communication functions: listen, connect, accept, read/write.
2626
* - SSL/TLS communication functions: init, handshake, read/write.
@@ -34,7 +34,7 @@
3434
* into an SSL server/client solution that utilises a X.509 PKI. Examples of
3535
* such implementations are amply provided with the source code.
3636
*
37-
* Note that PolarSSL does not provide a control channel or (multiple) session
37+
* Note that mbed TLS does not provide a control channel or (multiple) session
3838
* handling without additional work from the developer.
3939
*
4040
* @section mainpage_examples Examples

doxygen/polarssl.doxyfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ DOXYFILE_ENCODING = UTF-8
2828
# identify the project. Note that if you do not use Doxywizard you need
2929
# to put quotes around the project name if it contains spaces.
3030

31-
PROJECT_NAME = "PolarSSL v1.3.9"
31+
PROJECT_NAME = "mbed TLS v1.3.9"
3232

3333
# The PROJECT_NUMBER tag can be used to enter a project or revision number.
3434
# This could be handy for archiving the generated documentation or

include/polarssl/config.h

+14-14
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
*
120120
* Enable the memory allocation layer.
121121
*
122-
* By default PolarSSL uses the system-provided malloc() and free().
122+
* By default mbed TLS uses the system-provided malloc() and free().
123123
* This allows different allocators (self-implemented or provided) to be
124124
* provided to the platform abstraction layer.
125125
*
@@ -153,10 +153,10 @@
153153
/**
154154
* \def POLARSSL_PLATFORM_XXX_ALT
155155
*
156-
* Uncomment a macro to let PolarSSL support the function in the platform
156+
* Uncomment a macro to let mbed TLS support the function in the platform
157157
* abstraction layer.
158158
*
159-
* Example: In case you uncomment POLARSSL_PLATFORM_PRINTF_ALT, PolarSSL will
159+
* Example: In case you uncomment POLARSSL_PLATFORM_PRINTF_ALT, mbed TLS will
160160
* provide a function "platform_set_printf()" that allows you to set an
161161
* alternative printf function pointer.
162162
*
@@ -170,7 +170,7 @@
170170
/* \} name SECTION: System support */
171171

172172
/**
173-
* \name SECTION: PolarSSL feature support
173+
* \name SECTION: mbed TLS feature support
174174
*
175175
* This section sets support for features that are or are not needed
176176
* within the modules that are enabled.
@@ -193,12 +193,12 @@
193193
/**
194194
* \def POLARSSL_XXX_ALT
195195
*
196-
* Uncomment a macro to let PolarSSL use your alternate core implementation of
196+
* Uncomment a macro to let mbed TLS use your alternate core implementation of
197197
* a symmetric or hash algorithm (e.g. platform specific assembly optimized
198198
* implementations). Keep in mind that the function prototypes should remain
199199
* the same.
200200
*
201-
* Example: In case you uncomment POLARSSL_AES_ALT, PolarSSL will no longer
201+
* Example: In case you uncomment POLARSSL_AES_ALT, mbed TLS will no longer
202202
* provide the "struct aes_context" definition and omit the base function
203203
* declarations and implementations. "aes_alt.h" will be included from
204204
* "aes.h" to include the new function definitions.
@@ -797,7 +797,7 @@
797797
* \def POLARSSL_SSL_ALL_ALERT_MESSAGES
798798
*
799799
* Enable sending of alert messages in case of encountered errors as per RFC.
800-
* If you choose not to send the alert messages, PolarSSL can still communicate
800+
* If you choose not to send the alert messages, mbed TLS can still communicate
801801
* with other servers, only debugging of failures is harder.
802802
*
803803
* The advantage of not sending alert messages, is that no information is given
@@ -1158,12 +1158,12 @@
11581158
* Uncomment to enable use of ZLIB
11591159
*/
11601160
//#define POLARSSL_ZLIB_SUPPORT
1161-
/* \} name SECTION: PolarSSL feature support */
1161+
/* \} name SECTION: mbed TLS feature support */
11621162

11631163
/**
1164-
* \name SECTION: PolarSSL modules
1164+
* \name SECTION: mbed TLS modules
11651165
*
1166-
* This section enables or disables entire modules in PolarSSL
1166+
* This section enables or disables entire modules in mbed TLS
11671167
* \{
11681168
*/
11691169

@@ -1695,7 +1695,7 @@
16951695
* Module: library/memory_buffer_alloc.c
16961696
*
16971697
* Requires: POLARSSL_PLATFORM_C
1698-
* POLARSSL_PLATFORM_MEMORY (to use it within PolarSSL)
1698+
* POLARSSL_PLATFORM_MEMORY (to use it within mbed TLS)
16991699
*
17001700
* Enable this module to enable the buffer memory allocator.
17011701
*/
@@ -2038,7 +2038,7 @@
20382038
* \def POLARSSL_THREADING_C
20392039
*
20402040
* Enable the threading abstraction layer.
2041-
* By default PolarSSL assumes it is used in a non-threaded environment or that
2041+
* By default mbed TLS assumes it is used in a non-threaded environment or that
20422042
* contexts are not shared between threads. If you do intend to use contexts
20432043
* between threads, you will need to enable this layer to prevent race
20442044
* conditions.
@@ -2051,7 +2051,7 @@
20512051
* You will have to enable either POLARSSL_THREADING_ALT or
20522052
* POLARSSL_THREADING_PTHREAD.
20532053
*
2054-
* Enable this layer to allow use of mutexes within PolarSSL
2054+
* Enable this layer to allow use of mutexes within mbed TLS
20552055
*/
20562056
//#define POLARSSL_THREADING_C
20572057

@@ -2188,7 +2188,7 @@
21882188
*/
21892189
#define POLARSSL_XTEA_C
21902190

2191-
/* \} name SECTION: PolarSSL modules */
2191+
/* \} name SECTION: mbed TLS modules */
21922192

21932193
/**
21942194
* \name SECTION: Module configuration options

include/polarssl/error.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ extern "C" {
102102
#endif
103103

104104
/**
105-
* \brief Translate a PolarSSL error code into a string representation,
105+
* \brief Translate a mbed TLS error code into a string representation,
106106
* Result is truncated if necessary and always includes a terminating
107107
* null byte.
108108
*

include/polarssl/pbkdf2.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ extern "C" {
6060
* \param key_length Length of generated key
6161
* \param output Generated key. Must be at least as big as key_length
6262
*
63-
* \returns 0 on success, or a PolarSSL error code if verification fails.
63+
* \returns 0 on success, or a POLARSSL_ERR_xxx code if verification fails.
6464
*/
6565
int pbkdf2_hmac( md_context_t *ctx, const unsigned char *password,
6666
size_t plen, const unsigned char *salt, size_t slen,

include/polarssl/pkcs11.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ typedef struct {
6262
} pkcs11_context;
6363

6464
/**
65-
* Fill in a PolarSSL certificate, based on the given PKCS11 helper certificate.
65+
* Fill in a mbed TLS certificate, based on the given PKCS11 helper certificate.
6666
*
6767
* \param cert X.509 certificate to fill
6868
* \param pkcs11h_cert PKCS #11 helper certificate

include/polarssl/pkcs12.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ extern "C" {
6161
* \param len data length
6262
* \param output the output buffer
6363
*
64-
* \return 0 if successful, or a PolarSSL error code
64+
* \return 0 if successful, or a POLARSSL_ERR_xxx code
6565
*/
6666
int pkcs12_pbe_sha1_rc4_128( asn1_buf *pbe_params, int mode,
6767
const unsigned char *pwd, size_t pwdlen,
@@ -82,7 +82,7 @@ int pkcs12_pbe_sha1_rc4_128( asn1_buf *pbe_params, int mode,
8282
* \param len data length
8383
* \param output the output buffer
8484
*
85-
* \return 0 if successful, or a PolarSSL error code
85+
* \return 0 if successful, or a POLARSSL_ERR_xxx code
8686
*/
8787
int pkcs12_pbe( asn1_buf *pbe_params, int mode,
8888
cipher_type_t cipher_type, md_type_t md_type,

include/polarssl/pkcs5.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ extern "C" {
6464
* \param datalen length of data
6565
* \param output output buffer
6666
*
67-
* \returns 0 on success, or a PolarSSL error code if verification fails.
67+
* \returns 0 on success, or a POLARSSL_ERR_xxx code if verification fails.
6868
*/
6969
int pkcs5_pbes2( asn1_buf *pbe_params, int mode,
7070
const unsigned char *pwd, size_t pwdlen,
@@ -83,7 +83,7 @@ int pkcs5_pbes2( asn1_buf *pbe_params, int mode,
8383
* \param key_length Length of generated key
8484
* \param output Generated key. Must be at least as big as key_length
8585
*
86-
* \returns 0 on success, or a PolarSSL error code if verification fails.
86+
* \returns 0 on success, or a POLARSSL_ERR_xxx code if verification fails.
8787
*/
8888
int pkcs5_pbkdf2_hmac( md_context_t *ctx, const unsigned char *password,
8989
size_t plen, const unsigned char *salt, size_t slen,

include/polarssl/platform.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* \file platform.h
33
*
4-
* \brief PolarSSL Platform abstraction layer
4+
* \brief mbed TLS Platform abstraction layer
55
*
66
* Copyright (C) 2006-2014, Brainspark B.V.
77
*

0 commit comments

Comments
 (0)