diff --git a/samples/README b/samples/README index 8c6533c..13af136 100644 --- a/samples/README +++ b/samples/README @@ -17,7 +17,7 @@ Directories: Elliptic curve cipher. * info - Informations about the connection. + Information about the connection. * key Test encrypted private key. diff --git a/samples/certs/clientA.cnf b/samples/certs/clientA.cnf index f938d90..0fea787 100644 --- a/samples/certs/clientA.cnf +++ b/samples/certs/clientA.cnf @@ -50,7 +50,7 @@ crl = $dir/crl.pem # The current CRL private_key = $dir/private/cakey.pem # The private key 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" # (and highly broken) format. @@ -102,7 +102,7 @@ default_bits = 1024 default_keyfile = privkey.pem distinguished_name = req_distinguished_name 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 # input_password = secret diff --git a/samples/certs/clientB.cnf b/samples/certs/clientB.cnf index 40405d1..7de08de 100644 --- a/samples/certs/clientB.cnf +++ b/samples/certs/clientB.cnf @@ -50,7 +50,7 @@ crl = $dir/crl.pem # The current CRL private_key = $dir/private/cakey.pem # The private key 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" # (and highly broken) format. @@ -102,7 +102,7 @@ default_bits = 1024 default_keyfile = privkey.pem distinguished_name = req_distinguished_name 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 # input_password = secret diff --git a/samples/certs/rootA.cnf b/samples/certs/rootA.cnf index a16a6de..2dc39c8 100644 --- a/samples/certs/rootA.cnf +++ b/samples/certs/rootA.cnf @@ -50,7 +50,7 @@ crl = $dir/crl.pem # The current CRL private_key = $dir/private/cakey.pem # The private key 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" # (and highly broken) format. @@ -102,7 +102,7 @@ default_bits = 1024 default_keyfile = privkey.pem distinguished_name = req_distinguished_name 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 # input_password = secret diff --git a/samples/certs/rootB.cnf b/samples/certs/rootB.cnf index 3627abc..ee45752 100644 --- a/samples/certs/rootB.cnf +++ b/samples/certs/rootB.cnf @@ -50,7 +50,7 @@ crl = $dir/crl.pem # The current CRL private_key = $dir/private/cakey.pem # The private key 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" # (and highly broken) format. @@ -102,7 +102,7 @@ default_bits = 1024 default_keyfile = privkey.pem distinguished_name = req_distinguished_name 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 # input_password = secret diff --git a/samples/certs/serverA.cnf b/samples/certs/serverA.cnf index b8d18fc..b9c736f 100644 --- a/samples/certs/serverA.cnf +++ b/samples/certs/serverA.cnf @@ -50,7 +50,7 @@ crl = $dir/crl.pem # The current CRL private_key = $dir/private/cakey.pem # The private key 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" # (and highly broken) format. @@ -102,7 +102,7 @@ default_bits = 1024 default_keyfile = privkey.pem distinguished_name = req_distinguished_name 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 # input_password = secret diff --git a/samples/certs/serverB.cnf b/samples/certs/serverB.cnf index 344c140..ec5d031 100644 --- a/samples/certs/serverB.cnf +++ b/samples/certs/serverB.cnf @@ -50,7 +50,7 @@ crl = $dir/crl.pem # The current CRL private_key = $dir/private/cakey.pem # The private key 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" # (and highly broken) format. @@ -102,7 +102,7 @@ default_bits = 1024 default_keyfile = privkey.pem distinguished_name = req_distinguished_name 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 # input_password = secret diff --git a/src/luasocket/buffer.c b/src/luasocket/buffer.c index 4ef4e8e..5ea97a9 100644 --- a/src/luasocket/buffer.c +++ b/src/luasocket/buffer.c @@ -135,7 +135,7 @@ int buffer_meth_receive(lua_State *L, p_buffer buf) { } /* check if there was an error */ 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 */ luaL_pushresult(&b); lua_pushstring(L, buf->io->error(buf->io->ctx, err)); diff --git a/src/luasocket/io.h b/src/luasocket/io.h index 76a3e58..8945e2c 100644 --- a/src/luasocket/io.h +++ b/src/luasocket/io.h @@ -43,7 +43,7 @@ typedef int (*p_send) ( /* interface to recv function */ typedef int (*p_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 *got, /* number of bytes received uppon return */ p_timeout tm /* timeout control */ diff --git a/src/luasocket/socket.h b/src/luasocket/socket.h index 63573de..07c20fe 100644 --- a/src/luasocket/socket.h +++ b/src/luasocket/socket.h @@ -32,7 +32,7 @@ typedef struct sockaddr SA; /*=========================================================================*\ -* Functions bellow implement a comfortable platform independent +* Functions below implement a comfortable platform independent * interface to sockets \*=========================================================================*/ int socket_open(void); diff --git a/src/luasocket/timeout.h b/src/luasocket/timeout.h index 6715ca7..4957593 100644 --- a/src/luasocket/timeout.h +++ b/src/luasocket/timeout.h @@ -9,7 +9,7 @@ /* timeout control structure */ typedef struct t_timeout_ { 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 */ } t_timeout; typedef t_timeout *p_timeout; diff --git a/src/luasocket/usocket.c b/src/luasocket/usocket.c index da09130..775e6fd 100644 --- a/src/luasocket/usocket.c +++ b/src/luasocket/usocket.c @@ -40,7 +40,7 @@ int socket_waitfd(p_socket ps, int sw, p_timeout tm) { if (*ps >= FD_SETSIZE) return EINVAL; if (timeout_iszero(tm)) return IO_TIMEOUT; /* optimize timeout == 0 case */ 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; 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; } diff --git a/src/options.lua b/src/options.lua index 6c023ae..99b17a7 100644 --- a/src/options.lua +++ b/src/options.lua @@ -1,7 +1,7 @@ local function usage() print("Usage:") 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(" 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") diff --git a/src/x509.c b/src/x509.c index 49f9a5f..f21d4c6 100644 --- a/src/x509.c +++ b/src/x509.c @@ -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) { @@ -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) { @@ -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) {