Lines Matching refs:loc

92 X509_NAME_ENTRY *X509_NAME_get_entry(const X509_NAME *name, int loc)  in X509_NAME_get_entry()  argument
94 if (name == NULL || sk_X509_NAME_ENTRY_num(name->entries) <= loc in X509_NAME_get_entry()
95 || loc < 0) in X509_NAME_get_entry()
98 return sk_X509_NAME_ENTRY_value(name->entries, loc); in X509_NAME_get_entry()
101 X509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *name, int loc) in X509_NAME_delete_entry() argument
107 if (name == NULL || sk_X509_NAME_ENTRY_num(name->entries) <= loc in X509_NAME_delete_entry()
108 || loc < 0) in X509_NAME_delete_entry()
112 ret = sk_X509_NAME_ENTRY_delete(sk, loc); in X509_NAME_delete_entry()
115 if (loc == n) in X509_NAME_delete_entry()
119 if (loc != 0) in X509_NAME_delete_entry()
120 set_prev = (sk_X509_NAME_ENTRY_value(sk, loc - 1))->set; in X509_NAME_delete_entry()
123 set_next = sk_X509_NAME_ENTRY_value(sk, loc)->set; in X509_NAME_delete_entry()
136 for (i = loc; i < n; i++) in X509_NAME_delete_entry()
142 const unsigned char *bytes, int len, int loc, in X509_NAME_add_entry_by_OBJ() argument
151 ret = X509_NAME_add_entry(name, ne, loc, set); in X509_NAME_add_entry_by_OBJ()
157 const unsigned char *bytes, int len, int loc, in X509_NAME_add_entry_by_NID() argument
165 ret = X509_NAME_add_entry(name, ne, loc, set); in X509_NAME_add_entry_by_NID()
171 const unsigned char *bytes, int len, int loc, in X509_NAME_add_entry_by_txt() argument
179 ret = X509_NAME_add_entry(name, ne, loc, set); in X509_NAME_add_entry_by_txt()
188 int X509_NAME_add_entry(X509_NAME *name, const X509_NAME_ENTRY *ne, int loc, in X509_NAME_add_entry() argument
199 if (loc > n) in X509_NAME_add_entry()
200 loc = n; in X509_NAME_add_entry()
201 else if (loc < 0) in X509_NAME_add_entry()
202 loc = n; in X509_NAME_add_entry()
207 if (loc == 0) { in X509_NAME_add_entry()
211 set = sk_X509_NAME_ENTRY_value(sk, loc - 1)->set; in X509_NAME_add_entry()
215 if (loc >= n) { in X509_NAME_add_entry()
216 if (loc != 0) in X509_NAME_add_entry()
217 set = sk_X509_NAME_ENTRY_value(sk, loc - 1)->set + 1; in X509_NAME_add_entry()
221 set = sk_X509_NAME_ENTRY_value(sk, loc)->set; in X509_NAME_add_entry()
227 if (!sk_X509_NAME_ENTRY_insert(sk, new_name, loc)) { in X509_NAME_add_entry()
233 for (i = loc + 1; i < n; i++) in X509_NAME_add_entry()