Skip to content
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
2 changes: 1 addition & 1 deletion openssl/crypto/x509/x509.h
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ int X509_NAME_get_text_by_NID(X509_NAME *name, int nid,
int X509_NAME_get_text_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj,
char *buf,int len);

/* NOTE: you should be passsing -1, not 0 as lastpos. The functions that use
/* NOTE: you should be passing -1, not 0 as lastpos. The functions that use
* lastpos, search after that position on. */
int X509_NAME_get_index_by_NID(X509_NAME *name,int nid,int lastpos);
int X509_NAME_get_index_by_OBJ(X509_NAME *name,ASN1_OBJECT *obj,
Expand Down
2 changes: 1 addition & 1 deletion openssl/crypto/x509/x509name.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ int X509_NAME_get_index_by_NID(X509_NAME *name, int nid, int lastpos)
return(X509_NAME_get_index_by_OBJ(name,obj,lastpos));
}

/* NOTE: you should be passsing -1, not 0 as lastpos */
/* NOTE: you should be passing -1, not 0 as lastpos */
int X509_NAME_get_index_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj,
int lastpos)
{
Expand Down