aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2020-04-02 13:56:58 -0400
committerGreg Hudson <ghudson@mit.edu>2020-04-08 15:10:30 -0400
commitdb245c0d98c8e38a78a2e0b4af40ee23a18aaa96 (patch)
tree8453c1707733d0cdc3d9c2c6b0e3c0c9a825490d /src/include
parent022f2cbc7f5abc9fbefa0d68b6025216c1b59353 (diff)
downloadkrb5-db245c0d98c8e38a78a2e0b4af40ee23a18aaa96.zip
krb5-db245c0d98c8e38a78a2e0b4af40ee23a18aaa96.tar.gz
krb5-db245c0d98c8e38a78a2e0b4af40ee23a18aaa96.tar.bz2
Fix typos in comments
Correct comment spelling errors detected using codespell. Reported by Jens Schleusener.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gssrpc/clnt.h6
-rw-r--r--src/include/gssrpc/rpc_msg.h2
-rw-r--r--src/include/gssrpc/svc.h4
-rw-r--r--src/include/gssrpc/svc_auth.h2
-rw-r--r--src/include/gssrpc/xdr.h4
-rw-r--r--src/include/k5-int.h6
-rw-r--r--src/include/k5-utf8.h2
-rw-r--r--src/include/kdb.h8
-rw-r--r--src/include/krb5/audit_plugin.h2
-rw-r--r--src/include/net-server.h4
10 files changed, 20 insertions, 20 deletions
diff --git a/src/include/gssrpc/clnt.h b/src/include/gssrpc/clnt.h
index 6a4a1e1..e5af80d 100644
--- a/src/include/gssrpc/clnt.h
+++ b/src/include/gssrpc/clnt.h
@@ -93,8 +93,8 @@ struct rpc_err {
int RE_errno; /* realated system error */
enum auth_stat RE_why; /* why the auth error occurred */
struct {
- rpcvers_t low; /* lowest verion supported */
- rpcvers_t high; /* highest verion supported */
+ rpcvers_t low; /* lowest version supported */
+ rpcvers_t high; /* highest version supported */
} RE_vers;
struct { /* maybe meaningful if RPC_FAILED */
int32_t s1;
@@ -226,7 +226,7 @@ typedef struct CLIENT {
/*
- * RPCTEST is a test program which is accessable on every rpc
+ * RPCTEST is a test program which is accessible on every rpc
* transport/port. It is used for testing, performance evaluation,
* and network administration.
*/
diff --git a/src/include/gssrpc/rpc_msg.h b/src/include/gssrpc/rpc_msg.h
index 1070202..9403bfc 100644
--- a/src/include/gssrpc/rpc_msg.h
+++ b/src/include/gssrpc/rpc_msg.h
@@ -48,7 +48,7 @@ GSSRPC__BEGIN_DECLS
/*
* Bottom up definition of an rpc message.
- * NOTE: call and reply use the same overall stuct but
+ * NOTE: call and reply use the same overall struct but
* different parts of unions within it.
*/
diff --git a/src/include/gssrpc/svc.h b/src/include/gssrpc/svc.h
index 1bb8dd9..15cb3d7 100644
--- a/src/include/gssrpc/svc.h
+++ b/src/include/gssrpc/svc.h
@@ -81,7 +81,7 @@ typedef struct SVCXPRT {
#endif
u_short xp_port; /* associated port number */
struct xp_ops {
- /* receive incomming requests */
+ /* receive incoming requests */
bool_t (*xp_recv)(struct SVCXPRT *, struct rpc_msg *);
/* get transport status */
enum xprt_stat (*xp_stat)(struct SVCXPRT *);
@@ -103,7 +103,7 @@ typedef struct SVCXPRT {
SVCAUTH *xp_auth; /* auth flavor of current req */
void *xp_p1; /* private */
void *xp_p2; /* private */
- int xp_laddrlen; /* lenght of local address */
+ int xp_laddrlen; /* length of local address */
struct sockaddr_in xp_laddr; /* local address */
} SVCXPRT;
diff --git a/src/include/gssrpc/svc_auth.h b/src/include/gssrpc/svc_auth.h
index ceb13b7..4585374 100644
--- a/src/include/gssrpc/svc_auth.h
+++ b/src/include/gssrpc/svc_auth.h
@@ -88,7 +88,7 @@ extern enum auth_stat gssrpc__authenticate(struct svc_req *rqst,
enum auth_stat gssrpc__svcauth_none(struct svc_req *,
struct rpc_msg *, bool_t *);
/* unix style (uid, gids) */
-/* RENAMED: shoudl be _svcauth_unix. */
+/* RENAMED: should be _svcauth_unix. */
enum auth_stat gssrpc__svcauth_unix(struct svc_req *,
struct rpc_msg *, bool_t *);
/* short hand unix style */
diff --git a/src/include/gssrpc/xdr.h b/src/include/gssrpc/xdr.h
index c66ae69..da9e173 100644
--- a/src/include/gssrpc/xdr.h
+++ b/src/include/gssrpc/xdr.h
@@ -107,7 +107,7 @@ typedef bool_t (*xdrproc_t)();
/*
* The XDR handle.
* Contains operation which is being applied to the stream,
- * an operations vector for the paticular implementation (e.g. see xdr_mem.c),
+ * an operations vector for the particular implementation (e.g. see xdr_mem.c),
* and two private fields for the use of the particular impelementation.
*/
typedef struct XDR {
@@ -211,7 +211,7 @@ struct xdr_discrim {
};
/*
- * In-line routines for fast encode/decode of primitve data types.
+ * In-line routines for fast encode/decode of primitive data types.
* Caveat emptor: these use single memory cycles to get the
* data from the underlying buffer, and will fail to operate
* properly if the data is not aligned. The standard way to use these
diff --git a/src/include/k5-int.h b/src/include/k5-int.h
index 5fee63b..99350a8 100644
--- a/src/include/k5-int.h
+++ b/src/include/k5-int.h
@@ -1113,7 +1113,7 @@ krb5_authdata_free_internal(krb5_context kcontext,
* A pluggable interface should have one or more currently supported major
* versions, starting at 1. Each major version should have a current minor
* version, also starting at 1. If new methods are added to a vtable, the
- * minor version should be incremented and the vtable stucture should document
+ * minor version should be incremented and the vtable structure should document
* where each minor vtable version ends. If method signatures for a vtable are
* changed, the major version should be incremented.
*
@@ -1367,7 +1367,7 @@ void KRB5_CALLCONV krb5_free_priv_enc_part(krb5_context, krb5_priv_enc_part *);
krb5_data **code);
modifies *code
effects Returns the ASN.1 encoding of *rep in **code.
- Returns ASN1_MISSING_FIELD if a required field is emtpy in *rep.
+ Returns ASN1_MISSING_FIELD if a required field is empty in *rep.
Returns ENOMEM if memory runs out.
*/
@@ -1907,7 +1907,7 @@ krb5_ser_unpack_bytes(krb5_octet *, size_t, krb5_octet **, size_t *);
krb5_error_code KRB5_CALLCONV
krb5int_cc_default(krb5_context, krb5_ccache *);
-/* Fill in the buffer with random alpha-numeric data. */
+/* Fill in the buffer with random alphanumeric data. */
krb5_error_code
krb5int_random_string(krb5_context, char *string, unsigned int length);
diff --git a/src/include/k5-utf8.h b/src/include/k5-utf8.h
index ca548b5..7cc8cda 100644
--- a/src/include/k5-utf8.h
+++ b/src/include/k5-utf8.h
@@ -132,7 +132,7 @@ int krb5int_utf8_isspace( const char *);
size_t krb5int_utf8_strcspn( const char* str, const char *set);
/* span characters in set, return bytes spanned */
size_t krb5int_utf8_strspn( const char* str, const char *set);
-/* return first occurance of character in string */
+/* return first occurrence of character in string */
char *krb5int_utf8_strchr( const char* str, const char *chr);
/* return first character of set in string */
char *krb5int_utf8_strpbrk( const char* str, const char *set);
diff --git a/src/include/kdb.h b/src/include/kdb.h
index c56947a..ff47716 100644
--- a/src/include/kdb.h
+++ b/src/include/kdb.h
@@ -1103,7 +1103,7 @@ typedef struct _kdb_vftabl {
/*
* Optional: For each principal entry in the database, invoke func with the
- * argments func_arg and the entry data. If match_entry is specified, the
+ * arguments func_arg and the entry data. If match_entry is specified, the
* module may narrow the iteration to principal names matching that regular
* expression; a module may alternatively ignore match_entry.
*/
@@ -1135,9 +1135,9 @@ typedef struct _kdb_vftabl {
/*
* Optional: For each password policy entry in the database, invoke func
- * with the argments data and the entry data. If match_entry is specified,
- * the module may narrow the iteration to policy names matching that
- * regular expression; a module may alternatively ignore match_entry.
+ * with the arguments data and the entry data. If match_entry is
+ * specified, the module may narrow the iteration to policy names matching
+ * that regular expression; a module may alternatively ignore match_entry.
*/
krb5_error_code (*iter_policy)(krb5_context kcontext, char *match_entry,
osa_adb_iter_policy_func func,
diff --git a/src/include/krb5/audit_plugin.h b/src/include/krb5/audit_plugin.h
index b6e9064..64dda75 100644
--- a/src/include/krb5/audit_plugin.h
+++ b/src/include/krb5/audit_plugin.h
@@ -74,7 +74,7 @@
#define PROT_CONSTRAINT 1 /**< Protocol constraint */
#define LOCAL_POLICY 2 /**< Local policy violation */
-#define REQID_LEN 32 /* Size of the alpha-numeric request ID */
+#define REQID_LEN 32 /* Size of the alphanumeric request ID */
/** KDC audit state structure and declarations */
typedef struct _krb5_audit_state {
diff --git a/src/include/net-server.h b/src/include/net-server.h
index e5edcc4..a30749d 100644
--- a/src/include/net-server.h
+++ b/src/include/net-server.h
@@ -31,7 +31,7 @@
#include <verto.h>
-/* The delimeter characters supported by the addresses string. */
+/* The delimiter characters supported by the addresses string. */
#define ADDRESSES_DELIM ",; "
typedef struct _krb5_fulladdr {
@@ -95,7 +95,7 @@ krb5_error_code make_toolong_error (void *handle, krb5_data **);
* Contexts are needed in lots of places. Opaque application-provided
* handles are passed around in lots of place, but contexts are not.
* For now, we'll require that the application provide us an easy way
- * to get at a context; eventually it should probably be explicity.
+ * to get at a context; eventually it should probably be explicitly.
*/
krb5_context get_context(void *handle);