Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[minor] Fix some typos #129

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Copyright © 1995 CERN. This product includes computer software created and made
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* the following conditions are adhered to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
Expand All @@ -136,7 +136,7 @@ Copyright © 1995 CERN. This product includes computer software created and made
* must display the following acknowledgement:
* "This product includes cryptographic software written by
* Eric Young ([email protected])"
* The word 'cryptographic' can be left out if the rouines from the library
* The word 'cryptographic' can be left out if the routines from the library
* being used are not cryptographic related :-).
* 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
Expand Down
2 changes: 1 addition & 1 deletion config/ltmain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,7 @@ func_options ()
# All initialisations required before starting the option parse loop.
# Note that when calling hook functions, we pass through the list of
# positional parameters. If a hook function modifies that list, and
# needs to propogate that back to rest of this script, then the complete
# needs to propagate that back to rest of this script, then the complete
# modified list must be put in 'func_run_hooks_result' before
# returning.
func_hookable func_options_prep
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,19 +236,19 @@ private byte[] getTA() {
lCerts.append(0);
} catch (NoSuchAlgorithmException e) {
// TODO Auto-generated catch block
logError("An error occured: " + e.getMessage());
logError("An error occurred: " + e.getMessage());
e.printStackTrace();
} catch (KeyStoreException e) {
// TODO Auto-generated catch block
logError("An error occured: " + e.getMessage());
logError("An error occurred: " + e.getMessage());
e.printStackTrace();
} catch (CertificateEncodingException e) {
// TODO Auto-generated catch block
logError("An error occured: " + e.getMessage());
logError("An error occurred: " + e.getMessage());
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
logError("An error occured: " + e.getMessage());
logError("An error occurred: " + e.getMessage());
e.printStackTrace();
}

Expand Down
2 changes: 1 addition & 1 deletion example/client/estclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ int main (int argc, char **argv)
case 'i':
iterations = atoi(optarg);
if (iterations > MAX_ITERATIONS) {
printf("\nMaxium number of iterations per thread is %d, ", MAX_ITERATIONS);
printf("\nMaximum number of iterations per thread is %d, ", MAX_ITERATIONS);
printf("please use a lower value with the -i option\n");
exit(1);
}
Expand Down
2 changes: 1 addition & 1 deletion example/proxy/estproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ static void show_usage_and_exit (void)
" --dtls-handshake-mtu Set the MTU used during DTLS handshake phase.\n"
" --dtls-session-max Set the maximum number of DTLS sessions.\n"
#endif
" --perf-timers-on Enable the performace timers in proxy\n"
" --perf-timers-on Enable the performance timers in proxy\n"
"\n");
exit(255);
}
Expand Down
2 changes: 1 addition & 1 deletion example/server/estserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ static void show_usage_and_exit (void)
" --dtls-handshake-mtu Set the MTU used during DTLS handshake phase.\n"
" --dtls-session-max Set the maximum number of DTLS sessions.\n"
#endif
" --perf-timers-on Enable the performace timers in server\n"
" --perf-timers-on Enable the performance timers in server\n"
"\n");
exit(255);
}
Expand Down
6 changes: 3 additions & 3 deletions src/est/est_locl.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,10 @@ DHE-DSS-AES256-SHA256"
#define EST_BODY_UNAUTHORIZED "The server was unable to authorize the request.\n"
#define EST_BODY_POP_MISMATCH "Proof of Possession Mismatch.\n"
#define EST_BODY_BAD_METH "Invalid HTTP method used. Either GET or POST required depending on the request type.\n"
#define EST_BODY_BAD_SSL "An unknown TLS error has occured.\n"
#define EST_BODY_BAD_SSL "An unknown TLS error has occurred.\n"
#define EST_BODY_LOCKED "The content attempted to be accessed is locked.\n"
#define EST_BODY_ENROLL_FAIL "An error has occured during enrollment.\n"
#define EST_BODY_UNKNOWN_ERR "An unknown error has occured.\n"
#define EST_BODY_ENROLL_FAIL "An error has occurred during enrollment.\n"
#define EST_BODY_UNKNOWN_ERR "An unknown error has occurred.\n"
#define EST_BODY_INVALID_PATH_SEGMENT "The path specified is not recognized.\n"
#define EST_BODY_NOT_FOUND "Requested content is currently not available on the server.\n"
#define EST_BODY_BAD_GATEWAY "An error occurred while communicating to the upstream server.\n"
Expand Down
2 changes: 1 addition & 1 deletion src/est/est_ossl_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* the following conditions are adhered to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
Expand Down
14 changes: 7 additions & 7 deletions src/est/est_proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ static EST_ERROR est_proxy_propagate_keygen_rsp (void *http_ctx,
* Send the PKCS8 private key in the body
*/
if (!mg_write(http_ctx, key, key_len)) {
EST_LOG_ERR("HTTP write error while propogating server generated key");
EST_LOG_ERR("HTTP write error while propagating server generated key");
return (EST_ERR_HTTP_WRITE);
}

Expand Down Expand Up @@ -826,7 +826,7 @@ EST_ERROR est_proxy_handle_simple_enroll (EST_CTX *ctx, void *http_ctx,
break;
default:
/* This section will map to a 500 repsonse */
EST_LOG_ERR("Proxy: Unhandled error occured while communicating with "
EST_LOG_ERR("Proxy: Unhandled error occurred while communicating with "
"the upstream server %s (%d)",
EST_ERR_NUM_TO_STR(rv), rv);
rv = EST_ERR_UNKNOWN;
Expand All @@ -842,7 +842,7 @@ EST_ERROR est_proxy_handle_simple_enroll (EST_CTX *ctx, void *http_ctx,

/*
* If we have a cert response from the EST server, we pass it
* back to the caller. In HTTP mode we propogate it back right
* back to the caller. In HTTP mode we propagate it back right
* here and pass it back so it can be passed in the event notification
* handler, if needed. In CoAP mode, we just pass it back to the
* caller (the CoAP handler) and have the caller send it back and
Expand Down Expand Up @@ -1097,7 +1097,7 @@ EST_ERROR est_proxy_handle_server_keygen (EST_CTX *ctx, void *http_ctx,
break;
default:
/* This section will map to a 500 repsonse */
EST_LOG_ERR("Proxy: Unhandled error occured while communicating with "
EST_LOG_ERR("Proxy: Unhandled error occurred while communicating with "
"the upstream server %s (%d)",
EST_ERR_NUM_TO_STR(rv), rv);
rv = EST_ERR_UNKNOWN;
Expand All @@ -1113,7 +1113,7 @@ EST_ERROR est_proxy_handle_server_keygen (EST_CTX *ctx, void *http_ctx,

/*
* If we have a response from the EST server, we pass it
* back to the caller. In HTTP mode we propogate it back right
* back to the caller. In HTTP mode we propagate it back right
* here and pass it back so it can be passed in the event notification
* handler, if needed. In CoAP mode, we just pass it back to the
* caller (the CoAP handler) and have the caller send it back and
Expand Down Expand Up @@ -1293,7 +1293,7 @@ EST_ERROR est_proxy_handle_cacerts (EST_CTX *ctx, void *http_ctx, char *path_seg
return rv;
default:
/* This section will map to a 500 repsonse */
EST_LOG_ERR("Proxy: Unhandled error occured while communicating "
EST_LOG_ERR("Proxy: Unhandled error occurred while communicating "
"with the upstream server %s (%d)",
EST_ERR_NUM_TO_STR(rv), rv);
return (EST_ERR_UNKNOWN);
Expand Down Expand Up @@ -1440,7 +1440,7 @@ EST_ERROR est_proxy_handle_csr_attrs (EST_CTX *ctx, void *http_ctx,
return rv;
default:
/* This section will map to a 500 repsonse */
EST_LOG_ERR("Proxy: Unhandled error occured while communicating with "
EST_LOG_ERR("Proxy: Unhandled error occurred while communicating with "
"the upstream server %s (%d)",
EST_ERR_NUM_TO_STR(rv), rv);
return (EST_ERR_UNKNOWN);
Expand Down
2 changes: 1 addition & 1 deletion src/est/est_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -2189,7 +2189,7 @@ EST_ERROR est_handle_server_keygen (EST_CTX *ctx, void *http_ctx,
}

} else if (ctx->transport_mode != EST_COAP) {
EST_LOG_ERR("EST in improper transport mode. Cannot propogate server retry to client.");
EST_LOG_ERR("EST in improper transport mode. Cannot propagate server retry to client.");
return_code = EST_ERR_BAD_MODE;
goto free_buffers;
}
Expand Down
36 changes: 18 additions & 18 deletions test/UT/US5418/us5418h.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,16 @@ EST_ERROR setup_client_ctx(EST_CTX **cctx) {
}
est_err = est_client_set_server(*cctx, US5418_SERVER_IP, US5418_SERVER_PORT, NULL);
if (est_err != EST_ERR_NONE) {
printf("EST_ERROR %s occured while setting the server in the est client context\n",
printf("EST_ERROR %s occurred while setting the server in the est client context\n",
EST_ERR_NUM_TO_STR(est_err));
CU_FAIL("EST error occured while setting the server in the est client context");
CU_FAIL("EST error occurred while setting the server in the est client context");
return est_err;
}
est_err = est_client_set_auth(*cctx, "estuser", "estpwd", client_cert, client_pkey);
if (est_err != EST_ERR_NONE) {
printf("EST_ERROR %s occured while setting the auth in the est client context\n",
printf("EST_ERROR %s occurred while setting the auth in the est client context\n",
EST_ERR_NUM_TO_STR(est_err));
CU_FAIL("EST error occured while setting the auth in the est client context");
CU_FAIL("EST error occurred while setting the auth in the est client context");
return est_err;
}
return EST_ERR_NONE;
Expand Down Expand Up @@ -240,9 +240,9 @@ static EST_ERROR perform_est_request (REQUESTS request_type, EVP_PKEY *pkey,
est_err = setup_cb(&cctx);
if (est_err != EST_ERR_NONE) {
/* No success variable in here so can't use CU_FAIL_5418 */
printf("EST_ERROR %s occured during setup of client context\n",
printf("EST_ERROR %s occurred during setup of client context\n",
EST_ERR_NUM_TO_STR(est_err));
CU_FAIL("EST error occured during setup of client context");
CU_FAIL("EST error occurred during setup of client context");
if (cctx) {
est_destroy(cctx);
}
Expand All @@ -252,48 +252,48 @@ static EST_ERROR perform_est_request (REQUESTS request_type, EVP_PKEY *pkey,
case SIMPLE_ENROLL:
est_err = est_client_enroll(cctx, "testcert", &pkcs7_len, pkey);
if (est_err != EST_ERR_NONE) {
printf("EST_ERROR %s occured during enrollment request\n",
printf("EST_ERROR %s occurred during enrollment request\n",
EST_ERR_NUM_TO_STR(est_err));
CU_FAIL("EST error occured during enrollment request");
CU_FAIL("EST error occurred during enrollment request");
}
break;
case GET_CACERTS:
est_err = est_client_get_cacerts(cctx, &cacerts_len);
if (est_err != EST_ERR_NONE) {
printf("EST_ERROR %s occured during get cacerts request\n",
printf("EST_ERROR %s occurred during get cacerts request\n",
EST_ERR_NUM_TO_STR(est_err));
CU_FAIL("EST error occured during get cacerts request");
CU_FAIL("EST error occurred during get cacerts request");
}
break;
case CSR_ATTRS:
est_err = est_client_get_csrattrs(cctx, &csr_attrs_buf, &csr_attrs_len);
if (est_err != EST_ERR_NONE) {
printf("EST_ERROR %s occured during get csr attrs request\n",
printf("EST_ERROR %s occurred during get csr attrs request\n",
EST_ERR_NUM_TO_STR(est_err));
CU_FAIL("EST error occured during get csr attrs request");
CU_FAIL("EST error occurred during get csr attrs request");
}
break;
case SERVER_KEYGEN:
est_err = est_client_server_keygen_enroll(cctx, "testcert", &pkcs7_len,
&newkey_len, pkey);
if (est_err != EST_ERR_NONE) {
printf("EST_ERROR %s occured during get server keygen request\n",
printf("EST_ERROR %s occurred during get server keygen request\n",
EST_ERR_NUM_TO_STR(est_err));
CU_FAIL("EST error occured during get server keygen request");
CU_FAIL("EST error occurred during get server keygen request");
}
break;
case SIMPLE_REENROLL:
est_err = est_client_reenroll(cctx, reenroll_cert, &pkcs7_len, pkey);
if (est_err != EST_ERR_NONE) {
printf("EST_ERROR %s occured during reenroll request\n",
printf("EST_ERROR %s occurred during reenroll request\n",
EST_ERR_NUM_TO_STR(est_err));
CU_FAIL("EST error occured during reenroll request");
CU_FAIL("EST error occurred during reenroll request");
}
break;
default:
printf("EST_ERROR %s occured during get csr attrs request\n",
printf("EST_ERROR %s occurred during get csr attrs request\n",
EST_ERR_NUM_TO_STR(est_err));
CU_FAIL("EST error occured during get csr attrs request");
CU_FAIL("EST error occurred during get csr attrs request");
est_err = EST_ERR_INVALID_PARAMETERS;
}
if (cctx) {
Expand Down
4 changes: 2 additions & 2 deletions test/util/apps.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* the following conditions are adhered to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
Expand All @@ -32,7 +32,7 @@
* must display the following acknowledgement:
* "This product includes cryptographic software written by
* Eric Young ([email protected])"
* The word 'cryptographic' can be left out if the rouines from the library
* The word 'cryptographic' can be left out if the routines from the library
* being used are not cryptographic related :-).
* 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
Expand Down
4 changes: 2 additions & 2 deletions test/util/ossl_srv.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* the following conditions are adhered to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
Expand All @@ -45,7 +45,7 @@
* must display the following acknowledgement:
* "This product includes cryptographic software written by
* Eric Young ([email protected])"
* The word 'cryptographic' can be left out if the rouines from the library
* The word 'cryptographic' can be left out if the routines from the library
* being used are not cryptographic related :-).
* 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
Expand Down