Lines Matching refs:l2
128 char *str2, *l1, *l2, *tok, *name; in pkcs11_parse_uri() local
155 name = strtok_r(tok, "=", &l2); in pkcs11_parse_uri()
157 if (l2 == NULL) in pkcs11_parse_uri()
168 if (strlen(l2) > 32) in pkcs11_parse_uri()
170 if ((uri->token = (unsigned char *)strdup(l2)) == NULL) in pkcs11_parse_uri()
176 if (strlen(l2) > 32) in pkcs11_parse_uri()
178 if ((uri->manuf = (unsigned char *)strdup(l2)) == NULL) in pkcs11_parse_uri()
184 if (strlen(l2) > 16) in pkcs11_parse_uri()
186 if ((uri->serial = (unsigned char *)strdup(l2)) == NULL) in pkcs11_parse_uri()
192 if (strlen(l2) > 16) in pkcs11_parse_uri()
194 if ((uri->model = (unsigned char *)strdup(l2)) == NULL) in pkcs11_parse_uri()
205 if (strlen(l2) > PK11_MAX_ID_LEN * 2 + in pkcs11_parse_uri()
211 uri->id_len = read_id(l2, uri->id, in pkcs11_parse_uri()
219 if (strlen(l2) > PK11_MAX_OBJECT_LEN) in pkcs11_parse_uri()
221 if ((uri->object = (unsigned char *)strdup(l2)) == NULL) in pkcs11_parse_uri()
230 if (strcmp(l2, "public") == 0) in pkcs11_parse_uri()
232 else if (strcmp(l2, "private") == 0) in pkcs11_parse_uri()
234 else if (strcmp(l2, "cert") == 0) in pkcs11_parse_uri()
236 else if (strcmp(l2, "secretkey") == 0) in pkcs11_parse_uri()
238 else if (strcmp(l2, "data") == 0) in pkcs11_parse_uri()
246 if (strlen(l2) > MAXPATHLEN) in pkcs11_parse_uri()
248 if ((uri->pinfile = strdup(l2)) == NULL) in pkcs11_parse_uri()