diff --git a/src/include/d_options.rec b/src/include/d_options.rec index 1a1027dc..d0488563 100644 --- a/src/include/d_options.rec +++ b/src/include/d_options.rec @@ -162,7 +162,7 @@ Argument2: const char *mem_key Description2: the private key in PEM format loaded into memory (not a filename) Argument3: const char *mem_pass Description3: the option passphrase phrase to decrypt the private key, -+ could be NULL is private does not need a password ++ could be NULL if private key does not need a password CustomSetter: /* custom setter */ + if ((NULL == option->val.tls_cert_key.v_mem_cert) + || (NULL == option->val.tls_cert_key.v_mem_key)) diff --git a/src/include/microhttpd2.h b/src/include/microhttpd2.h index afb913cc..0935c18b 100644 --- a/src/include/microhttpd2.h +++ b/src/include/microhttpd2.h @@ -4009,7 +4009,7 @@ MHD_D_OPTION_TLS ( * certificates up to (but not including) CA root certificate. * @param mem_key the private key in PEM format loaded into memory (not a filename) * @param mem_pass the option passphrase phrase to decrypt the private key, - * could be NULL is private does not need a password + * could be NULL if private key does not need a password * @return structure with the requested setting */ struct MHD_DaemonOptionAndValue diff --git a/src/include/microhttpd2_generated_daemon_options.h b/src/include/microhttpd2_generated_daemon_options.h index 28c14efd..b7dac1d5 100644 --- a/src/include/microhttpd2_generated_daemon_options.h +++ b/src/include/microhttpd2_generated_daemon_options.h @@ -442,7 +442,7 @@ struct MHD_DaemonOptionValueTlsCert /** * the option passphrase phrase to decrypt the private key, - * could be NULL is private does not need a password + * could be NULL if private key does not need a password */ const char *v_mem_pass; @@ -1032,7 +1032,7 @@ Works only when #MHD_D_OPTION_BIND_PORT() or #MHD_D_OPTION_BIND_SA() are used. * certificates up to (but not including) CA root certificate. * @param mem_key the private key in PEM format loaded into memory (not a filename) * @param mem_pass the option passphrase phrase to decrypt the private key, - * could be NULL is private does not need a password + * could be NULL if private key does not need a password * @return structure with the requested setting */ # define MHD_D_OPTION_TLS_CERT_KEY(mem_cert,mem_key,mem_pass) \ @@ -1751,7 +1751,7 @@ MHD_D_OPTION_TLS ( * certificates up to (but not including) CA root certificate. * @param mem_key the private key in PEM format loaded into memory (not a filename) * @param mem_pass the option passphrase phrase to decrypt the private key, - * could be NULL is private does not need a password + * could be NULL if private key does not need a password * @return structure with the requested setting */ static MHD_INLINE struct MHD_DaemonOptionAndValue