Lines Matching refs:buf
19 + pstrdup_escape_nul_bytes(const char *buf, int len, apr_pool_t *pool);
80 + char buf[1024];
93 + length = X509_NAME_get_text_by_NID(subject, NID_commonName, buf, 1024);
95 + if (strlen(buf) != length)
152 +pstrdup_escape_nul_bytes(const char *buf, int len, apr_pool_t *pool)
159 + if (buf[i] == '\0')
165 + ret = apr_pstrdup(pool, buf);
174 + if (buf[i] != '\0') {
175 + *(pos++) = buf[i];
195 buf, 1024);
197 - apr_hash_set(tgt, "CN", APR_HASH_KEY_STRING, apr_pstrdup(pool, buf));
199 + pstrdup_escape_nul_bytes(buf, ret, pool));
202 buf, 1024);
204 - apr_hash_set(tgt, "E", APR_HASH_KEY_STRING, apr_pstrdup(pool, buf));
206 + pstrdup_escape_nul_bytes(buf, ret, pool));
209 buf, 1024);
211 - apr_hash_set(tgt, "OU", APR_HASH_KEY_STRING, apr_pstrdup(pool, buf));
213 + pstrdup_escape_nul_bytes(buf, ret, pool));
216 buf, 1024);
218 - apr_hash_set(tgt, "O", APR_HASH_KEY_STRING, apr_pstrdup(pool, buf));
220 + pstrdup_escape_nul_bytes(buf, ret, pool));
223 buf, 1024);
225 - apr_hash_set(tgt, "L", APR_HASH_KEY_STRING, apr_pstrdup(pool, buf));
227 + pstrdup_escape_nul_bytes(buf, ret, pool));
230 buf, 1024);
232 - apr_hash_set(tgt, "ST", APR_HASH_KEY_STRING, apr_pstrdup(pool, buf));
234 + pstrdup_escape_nul_bytes(buf, ret, pool));
237 buf, 1024);
239 - apr_hash_set(tgt, "C", APR_HASH_KEY_STRING, apr_pstrdup(pool, buf));
241 + pstrdup_escape_nul_bytes(buf, ret, pool));