mirror of
				https://github.com/brunoos/luasec.git
				synced 2025-10-31 02:15:45 +01:00 
			
		
		
		
	spelling fixes, as seen on lintian.debian.org
This commit is contained in:
		| @@ -17,7 +17,7 @@ Directories: | |||||||
|  Elliptic curve cipher. |  Elliptic curve cipher. | ||||||
|  |  | ||||||
| * info | * info | ||||||
|  Informations about the connection. |  Information about the connection. | ||||||
|  |  | ||||||
| * key | * key | ||||||
|  Test encrypted private key. |  Test encrypted private key. | ||||||
|   | |||||||
| @@ -50,7 +50,7 @@ crl		= $dir/crl.pem 		# The current CRL | |||||||
| private_key	= $dir/private/cakey.pem # The private key | private_key	= $dir/private/cakey.pem # The private key | ||||||
| RANDFILE	= $dir/private/.rand	# private random number file | RANDFILE	= $dir/private/.rand	# private random number file | ||||||
|  |  | ||||||
| x509_extensions	= usr_cert		# The extentions to add to the cert | x509_extensions	= usr_cert		# The extensions to add to the cert | ||||||
|  |  | ||||||
| # Comment out the following two lines for the "traditional" | # Comment out the following two lines for the "traditional" | ||||||
| # (and highly broken) format. | # (and highly broken) format. | ||||||
| @@ -102,7 +102,7 @@ default_bits		= 1024 | |||||||
| default_keyfile 	= privkey.pem | default_keyfile 	= privkey.pem | ||||||
| distinguished_name	= req_distinguished_name | distinguished_name	= req_distinguished_name | ||||||
| attributes		= req_attributes | attributes		= req_attributes | ||||||
| x509_extensions	= v3_ca	# The extentions to add to the self signed cert | x509_extensions	= v3_ca	# The extensions to add to the self signed cert | ||||||
|  |  | ||||||
| # Passwords for private keys if not present they will be prompted for | # Passwords for private keys if not present they will be prompted for | ||||||
| # input_password = secret | # input_password = secret | ||||||
|   | |||||||
| @@ -50,7 +50,7 @@ crl		= $dir/crl.pem 		# The current CRL | |||||||
| private_key	= $dir/private/cakey.pem # The private key | private_key	= $dir/private/cakey.pem # The private key | ||||||
| RANDFILE	= $dir/private/.rand	# private random number file | RANDFILE	= $dir/private/.rand	# private random number file | ||||||
|  |  | ||||||
| x509_extensions	= usr_cert		# The extentions to add to the cert | x509_extensions	= usr_cert		# The extensions to add to the cert | ||||||
|  |  | ||||||
| # Comment out the following two lines for the "traditional" | # Comment out the following two lines for the "traditional" | ||||||
| # (and highly broken) format. | # (and highly broken) format. | ||||||
| @@ -102,7 +102,7 @@ default_bits		= 1024 | |||||||
| default_keyfile 	= privkey.pem | default_keyfile 	= privkey.pem | ||||||
| distinguished_name	= req_distinguished_name | distinguished_name	= req_distinguished_name | ||||||
| attributes		= req_attributes | attributes		= req_attributes | ||||||
| x509_extensions	= v3_ca	# The extentions to add to the self signed cert | x509_extensions	= v3_ca	# The extensions to add to the self signed cert | ||||||
|  |  | ||||||
| # Passwords for private keys if not present they will be prompted for | # Passwords for private keys if not present they will be prompted for | ||||||
| # input_password = secret | # input_password = secret | ||||||
|   | |||||||
| @@ -50,7 +50,7 @@ crl		= $dir/crl.pem 		# The current CRL | |||||||
| private_key	= $dir/private/cakey.pem # The private key | private_key	= $dir/private/cakey.pem # The private key | ||||||
| RANDFILE	= $dir/private/.rand	# private random number file | RANDFILE	= $dir/private/.rand	# private random number file | ||||||
|  |  | ||||||
| x509_extensions	= usr_cert		# The extentions to add to the cert | x509_extensions	= usr_cert		# The extensions to add to the cert | ||||||
|  |  | ||||||
| # Comment out the following two lines for the "traditional" | # Comment out the following two lines for the "traditional" | ||||||
| # (and highly broken) format. | # (and highly broken) format. | ||||||
| @@ -102,7 +102,7 @@ default_bits		= 1024 | |||||||
| default_keyfile 	= privkey.pem | default_keyfile 	= privkey.pem | ||||||
| distinguished_name	= req_distinguished_name | distinguished_name	= req_distinguished_name | ||||||
| attributes		= req_attributes | attributes		= req_attributes | ||||||
| x509_extensions	= v3_ca	# The extentions to add to the self signed cert | x509_extensions	= v3_ca	# The extensions to add to the self signed cert | ||||||
|  |  | ||||||
| # Passwords for private keys if not present they will be prompted for | # Passwords for private keys if not present they will be prompted for | ||||||
| # input_password = secret | # input_password = secret | ||||||
|   | |||||||
| @@ -50,7 +50,7 @@ crl		= $dir/crl.pem 		# The current CRL | |||||||
| private_key	= $dir/private/cakey.pem # The private key | private_key	= $dir/private/cakey.pem # The private key | ||||||
| RANDFILE	= $dir/private/.rand	# private random number file | RANDFILE	= $dir/private/.rand	# private random number file | ||||||
|  |  | ||||||
| x509_extensions	= usr_cert		# The extentions to add to the cert | x509_extensions	= usr_cert		# The extensions to add to the cert | ||||||
|  |  | ||||||
| # Comment out the following two lines for the "traditional" | # Comment out the following two lines for the "traditional" | ||||||
| # (and highly broken) format. | # (and highly broken) format. | ||||||
| @@ -102,7 +102,7 @@ default_bits		= 1024 | |||||||
| default_keyfile 	= privkey.pem | default_keyfile 	= privkey.pem | ||||||
| distinguished_name	= req_distinguished_name | distinguished_name	= req_distinguished_name | ||||||
| attributes		= req_attributes | attributes		= req_attributes | ||||||
| x509_extensions	= v3_ca	# The extentions to add to the self signed cert | x509_extensions	= v3_ca	# The extensions to add to the self signed cert | ||||||
|  |  | ||||||
| # Passwords for private keys if not present they will be prompted for | # Passwords for private keys if not present they will be prompted for | ||||||
| # input_password = secret | # input_password = secret | ||||||
|   | |||||||
| @@ -50,7 +50,7 @@ crl		= $dir/crl.pem 		# The current CRL | |||||||
| private_key	= $dir/private/cakey.pem # The private key | private_key	= $dir/private/cakey.pem # The private key | ||||||
| RANDFILE	= $dir/private/.rand	# private random number file | RANDFILE	= $dir/private/.rand	# private random number file | ||||||
|  |  | ||||||
| x509_extensions	= usr_cert		# The extentions to add to the cert | x509_extensions	= usr_cert		# The extensions to add to the cert | ||||||
|  |  | ||||||
| # Comment out the following two lines for the "traditional" | # Comment out the following two lines for the "traditional" | ||||||
| # (and highly broken) format. | # (and highly broken) format. | ||||||
| @@ -102,7 +102,7 @@ default_bits		= 1024 | |||||||
| default_keyfile 	= privkey.pem | default_keyfile 	= privkey.pem | ||||||
| distinguished_name	= req_distinguished_name | distinguished_name	= req_distinguished_name | ||||||
| attributes		= req_attributes | attributes		= req_attributes | ||||||
| x509_extensions	= v3_ca	# The extentions to add to the self signed cert | x509_extensions	= v3_ca	# The extensions to add to the self signed cert | ||||||
|  |  | ||||||
| # Passwords for private keys if not present they will be prompted for | # Passwords for private keys if not present they will be prompted for | ||||||
| # input_password = secret | # input_password = secret | ||||||
|   | |||||||
| @@ -50,7 +50,7 @@ crl		= $dir/crl.pem 		# The current CRL | |||||||
| private_key	= $dir/private/cakey.pem # The private key | private_key	= $dir/private/cakey.pem # The private key | ||||||
| RANDFILE	= $dir/private/.rand	# private random number file | RANDFILE	= $dir/private/.rand	# private random number file | ||||||
|  |  | ||||||
| x509_extensions	= usr_cert		# The extentions to add to the cert | x509_extensions	= usr_cert		# The extensions to add to the cert | ||||||
|  |  | ||||||
| # Comment out the following two lines for the "traditional" | # Comment out the following two lines for the "traditional" | ||||||
| # (and highly broken) format. | # (and highly broken) format. | ||||||
| @@ -102,7 +102,7 @@ default_bits		= 1024 | |||||||
| default_keyfile 	= privkey.pem | default_keyfile 	= privkey.pem | ||||||
| distinguished_name	= req_distinguished_name | distinguished_name	= req_distinguished_name | ||||||
| attributes		= req_attributes | attributes		= req_attributes | ||||||
| x509_extensions	= v3_ca	# The extentions to add to the self signed cert | x509_extensions	= v3_ca	# The extensions to add to the self signed cert | ||||||
|  |  | ||||||
| # Passwords for private keys if not present they will be prompted for | # Passwords for private keys if not present they will be prompted for | ||||||
| # input_password = secret | # input_password = secret | ||||||
|   | |||||||
| @@ -135,7 +135,7 @@ int buffer_meth_receive(lua_State *L, p_buffer buf) { | |||||||
|     } |     } | ||||||
|     /* check if there was an error */ |     /* check if there was an error */ | ||||||
|     if (err != IO_DONE) { |     if (err != IO_DONE) { | ||||||
|         /* we can't push anyting in the stack before pushing the |         /* we can't push anything in the stack before pushing the | ||||||
|          * contents of the buffer. this is the reason for the complication */ |          * contents of the buffer. this is the reason for the complication */ | ||||||
|         luaL_pushresult(&b); |         luaL_pushresult(&b); | ||||||
|         lua_pushstring(L, buf->io->error(buf->io->ctx, err));  |         lua_pushstring(L, buf->io->error(buf->io->ctx, err));  | ||||||
|   | |||||||
| @@ -43,7 +43,7 @@ typedef int (*p_send) ( | |||||||
| /* interface to recv function */ | /* interface to recv function */ | ||||||
| typedef int (*p_recv) ( | typedef int (*p_recv) ( | ||||||
|     void *ctx,          /* context needed by recv */ |     void *ctx,          /* context needed by recv */ | ||||||
|     char *data,         /* pointer to buffer where data will be writen */ |     char *data,         /* pointer to buffer where data will be written */ | ||||||
|     size_t count,       /* number of bytes to receive into buffer */ |     size_t count,       /* number of bytes to receive into buffer */ | ||||||
|     size_t *got,        /* number of bytes received uppon return */ |     size_t *got,        /* number of bytes received uppon return */ | ||||||
|     p_timeout tm        /* timeout control */ |     p_timeout tm        /* timeout control */ | ||||||
|   | |||||||
| @@ -32,7 +32,7 @@ | |||||||
| typedef struct sockaddr SA; | typedef struct sockaddr SA; | ||||||
|  |  | ||||||
| /*=========================================================================*\ | /*=========================================================================*\ | ||||||
| * Functions bellow implement a comfortable platform independent  | * Functions below implement a comfortable platform independent  | ||||||
| * interface to sockets | * interface to sockets | ||||||
| \*=========================================================================*/ | \*=========================================================================*/ | ||||||
| int socket_open(void); | int socket_open(void); | ||||||
|   | |||||||
| @@ -9,7 +9,7 @@ | |||||||
| /* timeout control structure */ | /* timeout control structure */ | ||||||
| typedef struct t_timeout_ { | typedef struct t_timeout_ { | ||||||
|     double block;          /* maximum time for blocking calls */ |     double block;          /* maximum time for blocking calls */ | ||||||
|     double total;          /* total number of miliseconds for operation */ |     double total;          /* total number of milliseconds for operation */ | ||||||
|     double start;          /* time of start of operation */ |     double start;          /* time of start of operation */ | ||||||
| } t_timeout; | } t_timeout; | ||||||
| typedef t_timeout *p_timeout; | typedef t_timeout *p_timeout; | ||||||
|   | |||||||
| @@ -40,7 +40,7 @@ int socket_waitfd(p_socket ps, int sw, p_timeout tm) { | |||||||
|     if (*ps >= FD_SETSIZE) return EINVAL; |     if (*ps >= FD_SETSIZE) return EINVAL; | ||||||
|     if (timeout_iszero(tm)) return IO_TIMEOUT;  /* optimize timeout == 0 case */ |     if (timeout_iszero(tm)) return IO_TIMEOUT;  /* optimize timeout == 0 case */ | ||||||
|     do { |     do { | ||||||
|         /* must set bits within loop, because select may have modifed them */ |         /* must set bits within loop, because select may have modified them */ | ||||||
|         rp = wp = NULL; |         rp = wp = NULL; | ||||||
|         if (sw & WAITFD_R) { FD_ZERO(&rfds); FD_SET(*ps, &rfds); rp = &rfds; } |         if (sw & WAITFD_R) { FD_ZERO(&rfds); FD_SET(*ps, &rfds); rp = &rfds; } | ||||||
|         if (sw & WAITFD_W) { FD_ZERO(&wfds); FD_SET(*ps, &wfds); wp = &wfds; } |         if (sw & WAITFD_W) { FD_ZERO(&wfds); FD_SET(*ps, &wfds); wp = &wfds; } | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| local function usage() | local function usage() | ||||||
|   print("Usage:") |   print("Usage:") | ||||||
|   print("* Generate options of your system:") |   print("* Generate options of your system:") | ||||||
|   print("  lua options.lua -g /path/to/ssl.h [verion] > options.h") |   print("  lua options.lua -g /path/to/ssl.h [version] > options.h") | ||||||
|   print("* Examples:") |   print("* Examples:") | ||||||
|   print("  lua options.lua -g /usr/include/openssl/ssl.h > options.h\n") |   print("  lua options.lua -g /usr/include/openssl/ssl.h > options.h\n") | ||||||
|   print("  lua options.lua -g /usr/include/openssl/ssl.h \"OpenSSL 1.0.1 14\" > options.h\n") |   print("  lua options.lua -g /usr/include/openssl/ssl.h \"OpenSSL 1.0.1 14\" > options.h\n") | ||||||
|   | |||||||
| @@ -221,7 +221,7 @@ static int push_subtable(lua_State* L, int idx) | |||||||
| } | } | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * Retrive the general names from the object. |  * Retrieve the general names from the object. | ||||||
|  */ |  */ | ||||||
| static int push_x509_name(lua_State* L, X509_NAME *name, int encode) | static int push_x509_name(lua_State* L, X509_NAME *name, int encode) | ||||||
| { | { | ||||||
| @@ -249,7 +249,7 @@ static int push_x509_name(lua_State* L, X509_NAME *name, int encode) | |||||||
| /*---------------------------------------------------------------------------*/ | /*---------------------------------------------------------------------------*/ | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * Retrive the Subject from the certificate. |  * Retrieve the Subject from the certificate. | ||||||
|  */ |  */ | ||||||
| static int meth_subject(lua_State* L) | static int meth_subject(lua_State* L) | ||||||
| { | { | ||||||
| @@ -258,7 +258,7 @@ static int meth_subject(lua_State* L) | |||||||
| } | } | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * Retrive the Issuer from the certificate. |  * Retrieve the Issuer from the certificate. | ||||||
|  */ |  */ | ||||||
| static int meth_issuer(lua_State* L) | static int meth_issuer(lua_State* L) | ||||||
| { | { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user