Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 223) sorted by relevance

123456789

/openssl/crypto/buffer/
H A Dbuffer.c63 memcpy(ret, str->data, str->length); in sec_alloc_realloc()
64 OPENSSL_secure_clear_free(str->data, str->length); in sec_alloc_realloc()
82 memset(&str->data[str->length], 0, len - str->length); in BUF_MEM_grow()
99 str->data = ret; in BUF_MEM_grow()
100 str->max = n; in BUF_MEM_grow()
101 memset(&str->data[str->length], 0, len - str->length); in BUF_MEM_grow()
114 memset(&str->data[len], 0, str->length - len); in BUF_MEM_grow_clean()
119 memset(&str->data[str->length], 0, len - str->length); in BUF_MEM_grow_clean()
132 ret = OPENSSL_clear_realloc(str->data, str->max, n); in BUF_MEM_grow_clean()
137 str->max = n; in BUF_MEM_grow_clean()
[all …]
/openssl/crypto/asn1/
H A Da_utf8.c35 p = str; in UTF8_getc()
93 int UTF8_putc(unsigned char *str, int len, unsigned long value) in UTF8_putc() argument
95 if (!str) in UTF8_putc()
100 if (str) in UTF8_putc()
101 *str = (unsigned char)value; in UTF8_putc()
107 if (str) { in UTF8_putc()
109 *str = (unsigned char)((value & 0x3f) | 0x80); in UTF8_putc()
118 if (str) { in UTF8_putc()
121 *str = (unsigned char)((value & 0x3f) | 0x80); in UTF8_putc()
128 if (str) { in UTF8_putc()
[all …]
H A Dasn1_lib.c253 str->flags &= ~0x07; in ossl_asn1_string_set_bits_left()
259 if (str == NULL) in ASN1_STRING_copy()
261 dst->type = str->type; in ASN1_STRING_copy()
262 if (!ASN1_STRING_set(dst, str->data, str->length)) in ASN1_STRING_copy()
274 if (!str) in ASN1_STRING_dup()
308 if ((size_t)str->length <= len || str->data == NULL) { in ASN1_STRING_set()
309 c = str->data; in ASN1_STRING_set()
317 str->data = c; in ASN1_STRING_set()
321 str->length = len; in ASN1_STRING_set()
342 str->data = data; in ASN1_STRING_set0()
[all …]
H A Da_digest.c32 unsigned char *str, *p; in ASN1_digest() local
39 if ((str = OPENSSL_malloc(inl)) == NULL) in ASN1_digest()
41 p = str; in ASN1_digest()
44 if (!EVP_Digest(str, inl, md, len, type, NULL)) { in ASN1_digest()
45 OPENSSL_free(str); in ASN1_digest()
48 OPENSSL_free(str); in ASN1_digest()
59 unsigned char *str = NULL; in ossl_asn1_item_digest_ex() local
62 i = ASN1_item_i2d(asn, &str, it); in ossl_asn1_item_digest_ex()
63 if (i < 0 || str == NULL) in ossl_asn1_item_digest_ex()
79 ret = EVP_Digest(str, i, data, len, fetched_md, NULL); in ossl_asn1_item_digest_ex()
[all …]
H A Dtasn_prn.c369 const char *str; in asn1_print_boolean() local
372 str = "BOOL ABSENT"; in asn1_print_boolean()
376 str = "FALSE"; in asn1_print_boolean()
380 str = "TRUE"; in asn1_print_boolean()
385 if (BIO_puts(out, str) <= 0) in asn1_print_boolean()
424 if ((str->length > 0) in asn1_print_obstring()
425 && BIO_dump_indent(out, (const char *)str->data, str->length, in asn1_print_obstring()
437 ASN1_STRING *str; in asn1_primitive_print() local
447 str = (ASN1_STRING *)*fld; in asn1_primitive_print()
452 str = NULL; in asn1_primitive_print()
[all …]
H A Dasn1_gen.c25 #define ASN1_GEN_STR(str,val) {str, sizeof(str) - 1, val} argument
61 const char *str; member
84 return ASN1_generate_v3(str, NULL); in ASN1_generate_nconf()
87 return ASN1_generate_v3(str, &cnf); in ASN1_generate_nconf()
93 ASN1_TYPE *ret = generate_v3(str, cnf, 0, &err); in ASN1_generate_v3()
274 arg->str = vstart; in asn1_cb()
589 if (!str) in asn1_str2type()
590 str = ""; in asn1_str2type()
595 if (str && *str) { in asn1_str2type()
608 vtmp.value = (char *)str; in asn1_str2type()
[all …]
H A Dasn1_parse.c25 char str[128]; in asn1_print_info() local
37 if (BIO_snprintf(str, sizeof(str), "%5ld:d=%-2d hl=%ld l=%4ld %s", in asn1_print_info()
41 if (BIO_snprintf(str, sizeof(str), "%5ld:d=%-2d hl=%ld l=inf %s", in asn1_print_info()
46 if (BIO_set_prefix(bp, str) <= 0) { in asn1_print_info()
53 if (BIO_set_prefix(bp, str) <= 0 || BIO_set_indent(bp, indent) <= 0) in asn1_print_info()
61 p = str; in asn1_print_info()
63 BIO_snprintf(str, sizeof(str), "priv [ %d ] ", tag); in asn1_print_info()
65 BIO_snprintf(str, sizeof(str), "cont [ %d ]", tag); in asn1_print_info()
67 BIO_snprintf(str, sizeof(str), "appl [ %d ]", tag); in asn1_print_info()
69 BIO_snprintf(str, sizeof(str), "<ASN1 %d>", tag); in asn1_print_info()
H A Da_strex.c261 const ASN1_STRING *str) in do_dump() argument
275 outlen = do_hex_dump(io_ch, arg, str->data, str->length); in do_dump()
280 t.type = str->type; in do_dump()
281 t.value.ptr = (char *)str; in do_dump()
330 const ASN1_STRING *str) in do_print_ex() argument
340 type = str->type; in do_print_ex()
374 len = do_dump(lflags, io_ch, arg, str); in do_print_ex()
393 len = do_buf(str->data, str->length, type, flags, &quotes, io_ch, NULL); in do_print_ex()
403 if (do_buf(str->data, str->length, type, flags, NULL, io_ch, arg) < 0) in do_print_ex()
596 return do_print_ex(send_fp_chars, fp, flags, str); in ASN1_STRING_print_ex_fp()
[all …]
/openssl/crypto/pem/
H A Dpem_local.h85 # define IMPLEMENT_PEM_provided_write_body_fallback(str, asn1, \ argument
88 return PEM_ASN1_##writename((i2d_of_void *)i2d_##asn1, str, out, \
90 # define IMPLEMENT_PEM_provided_write_body_fallback_cb(str, asn1, \ argument
93 return PEM_ASN1_##writename##((i2d_of_void *)i2d_##asn1, str, out, \
96 # define IMPLEMENT_PEM_provided_write_to(name, TYPE, type, str, asn1, \ argument
102 IMPLEMENT_PEM_provided_write_body_fallback(str, asn1, \
135 # define IMPLEMENT_PEM_provided_write_fp(name, TYPE, type, str, asn1) argument
154 IMPLEMENT_PEM_provided_write_fp(name, TYPE, type, str, asn1)
158 IMPLEMENT_PEM_provided_write_cb_fp(name, TYPE, type, str, asn1)
162 IMPLEMENT_PEM_provided_write(name, TYPE, type, str, asn1)
[all …]
/openssl/crypto/
H A Do_str.c26 if (str == NULL) in CRYPTO_strdup()
30 strcpy(ret, str); in CRYPTO_strdup()
39 if (str == NULL) in CRYPTO_strndup()
46 memcpy(ret, str, maxlen); in CRYPTO_strndup()
71 return p - str; in OPENSSL_strnlen()
136 if (str == NULL) in OPENSSL_strtoul()
140 if (*str == '-') in OPENSSL_strtoul()
260 buf_n = strlen(str); in ossl_hexstr2buf_sep()
298 if (str == NULL) in buf2hexstr_sep()
306 q = str; in buf2hexstr_sep()
[all …]
H A Dmem.c306 if (str == NULL) in CRYPTO_realloc()
310 CRYPTO_free(str, file, line); in CRYPTO_realloc()
315 return realloc(str, num); in CRYPTO_realloc()
323 if (str == NULL) in CRYPTO_clear_realloc()
334 return str; in CRYPTO_clear_realloc()
339 memcpy(ret, str, old_len); in CRYPTO_clear_realloc()
349 free_impl(str, file, line); in CRYPTO_free()
353 free(str); in CRYPTO_free()
358 if (str == NULL) in CRYPTO_clear_free()
361 OPENSSL_cleanse(str, num); in CRYPTO_clear_free()
[all …]
H A Dcpuid.c63 static uint64_t ossl_strtouint64(const variant_char *str) in ossl_strtouint64() argument
68 if (*str == '0') { in ossl_strtouint64()
69 base = 8, str++; in ossl_strtouint64()
70 if (ossl_tolower(*str) == 'x') in ossl_strtouint64()
71 base = 16, str++; in ossl_strtouint64()
74 while ((digit = todigit(*str++)) < base) in ossl_strtouint64()
80 static variant_char *ossl_strchr(const variant_char *str, char srch) in ossl_strchr() argument
83 while ((c = *str)) { in ossl_strchr()
85 return (variant_char *)str; in ossl_strchr()
86 str++; in ossl_strchr()
/openssl/apps/
H A Dprogs.pl121 my $str =
124 print "#ifndef OPENSSL_NO_SOCK\n${str}#endif\n";
136 $str =~ s/NULL, NULL/$dalt/;
137 print "\n${str}#endif\n";
139 print "#ifndef OPENSSL_NO_" . uc($cmd) . "\n${str}#endif\n";
143 print $str;
160 my $str = " {FT_md, \"$cmd\", dgst_main, NULL, NULL},\n";
162 print "#ifndef OPENSSL_NO_" . uc($cmd) . "\n${str}#endif\n";
166 print $str;
209 print "#ifndef OPENSSL_NO_" . uc($algo) . "\n${str}#endif\n";
[all …]
/openssl/crypto/aes/asm/
H A Dbsaes-armv8.pl1049 str q6, [sp]
1077 str q1, [x1], #16
1084 str q0, [x1], #16
1085 str q1, [x1], #16
1144 str q1, [x1]
1167 str q0, [x1]
1187 str q0, [x1]
1204 str q2, [x1]
1218 str q1, [x1]
1229 str q0, [x1]
[all …]
/openssl/include/openssl/
H A Dpem.h131 IMPLEMENT_PEM_write_fp(name, type, str, asn1)
143 IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1)
164 IMPLEMENT_PEM_write_bio(name, type, str, asn1)
176 IMPLEMENT_PEM_write_cb_bio(name, type, str, asn1)
199 # define IMPLEMENT_PEM_read(name, type, str, asn1) \ argument
201 IMPLEMENT_PEM_read_fp(name, type, str, asn1)
203 # define IMPLEMENT_PEM_rw(name, type, str, asn1) \ argument
204 IMPLEMENT_PEM_read(name, type, str, asn1) \
205 IMPLEMENT_PEM_write(name, type, str, asn1)
209 IMPLEMENT_PEM_read(name, type, str, asn1) \
[all …]
/openssl/crypto/des/
H A Dstr2key.c19 void DES_string_to_key(const char *str, DES_cblock *key) in DES_string_to_key() argument
25 length = strlen(str); in DES_string_to_key()
27 register unsigned char j = str[i]; in DES_string_to_key()
41 DES_cbc_cksum((const unsigned char *)str, key, length, &ks, key); in DES_string_to_key()
46 void DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2) in DES_string_to_2keys() argument
53 length = strlen(str); in DES_string_to_2keys()
55 register unsigned char j = str[i]; in DES_string_to_2keys()
77 DES_cbc_cksum((const unsigned char *)str, key1, length, &ks, key1); in DES_string_to_2keys()
79 DES_cbc_cksum((const unsigned char *)str, key2, length, &ks, key2); in DES_string_to_2keys()
/openssl/crypto/cmp/
H A Dcmp_vfy.c165 char *str; in check_name() local
184 if (str != NULL) in check_name()
186 OPENSSL_free(str); in check_name()
189 OPENSSL_free(str); in check_name()
198 char *str; in check_kid() local
216 if (str != NULL) in check_kid()
218 OPENSSL_free(str); in check_kid()
221 OPENSSL_free(str); in check_kid()
252 char *str; in cert_acceptable() local
720 char *str; in ossl_cmp_msg_check_update() local
[all …]
/openssl/crypto/err/
H A Derr.c252 for (; str->error != 0; str++) in err_patch()
253 str->error |= plib; in err_patch()
263 for (; str->error; str++) in err_load_strings()
289 err_patch(lib, str); in ERR_load_strings()
290 err_load_strings(str); in ERR_load_strings()
301 err_load_strings(str); in ERR_load_strings_const()
319 for (; str->error; str++) in ERR_unload_strings()
824 char *str, *arg; in ERR_add_error_vdata() local
854 str[0] = '\0'; in ERR_add_error_vdata()
856 len = strlen(str); in ERR_add_error_vdata()
[all …]
H A Derr_prn.c20 void ERR_print_errors_cb(int (*cb) (const char *str, size_t len, void *u), in ERR_print_errors_cb() argument
150 char *str; in ERR_add_error_mem_bio() local
151 long len = BIO_get_mem_data(bio, &str); in ERR_add_error_mem_bio()
154 if (str[len - 1] != '\0') { in ERR_add_error_mem_bio()
158 len = BIO_get_mem_data(bio, &str); in ERR_add_error_mem_bio()
161 ERR_add_error_txt(separator, str); in ERR_add_error_mem_bio()
166 static int print_bio(const char *str, size_t len, void *bp) in print_bio() argument
168 return BIO_write((BIO *)bp, str, len); in print_bio()
/openssl/include/internal/
H A Dcommon.h58 #define HAS_PREFIX(str, pre) (strncmp(str, pre "", sizeof(pre) - 1) == 0) argument
60 #define CHECK_AND_SKIP_PREFIX(str, pre) \ argument
61 (HAS_PREFIX(str, pre) ? ((str) += sizeof(pre) - 1, 1) : 0)
65 #define CHECK_AND_SKIP_CASE_PREFIX(str, pre) \ argument
66 (HAS_CASE_PREFIX(str, pre) ? ((str) += sizeof(pre) - 1, 1) : 0)
68 #define HAS_CASE_SUFFIX(str, suffix) (strlen(str) < sizeof(suffix) - 1 ? 0 : \ argument
69 OPENSSL_strcasecmp(str + strlen(str) - sizeof(suffix) + 1, suffix "") == 0)
/openssl/test/recipes/
H A D25-test_crl.t55 my ($cmdarray, $str) = @_;
58 return 1 if $lines[0] =~ m|^\Q${str}\E\R$|;
60 note "Expected ", $str;
65 my ($cmdarray, $infile, $str) = @_;
68 return 1 if $lines[0] =~ m|^\Q${str}\E\R$|;
70 note "Expected ", $str;
/openssl/ssl/quic/
H A Djson_enc.c648 for (j = nul_term ? strlen(str) : str_len; j > 0; str++, j--) { in json_write_qstring_inner()
649 c = *str; in json_write_qstring_inner()
650 u_str = (unsigned char*)str; in json_write_qstring_inner()
663 memcpy(obuf, str, 2); in json_write_qstring_inner()
665 str++, j--; in json_write_qstring_inner()
674 memcpy(obuf, str, 3); in json_write_qstring_inner()
676 str += 2; in json_write_qstring_inner()
687 memcpy(obuf, str, 4); in json_write_qstring_inner()
689 str += 3; in json_write_qstring_inner()
717 json_write_qstring_inner(json, str, 0, 1); in json_write_qstring()
[all …]
/openssl/crypto/x509/
H A Dv3_skid.c17 X509V3_CTX *ctx, char *str);
34 X509V3_CTX *ctx, const char *str) in s2i_ASN1_OCTET_STRING() argument
44 if ((oct->data = OPENSSL_hexstr2buf(str, &length)) == NULL) { in s2i_ASN1_OCTET_STRING()
92 X509V3_CTX *ctx, char *str) in s2i_skey_id() argument
94 if (strcmp(str, "none") == 0) in s2i_skey_id()
97 if (strcmp(str, "hash") != 0) in s2i_skey_id()
98 return s2i_ASN1_OCTET_STRING(method, ctx /* not used */, str); in s2i_skey_id()
/openssl/crypto/bio/
H A Dbss_null.c17 static int null_puts(BIO *h, const char *str);
18 static int null_gets(BIO *h, char *str, int size);
80 static int null_puts(BIO *bp, const char *str) in null_puts() argument
82 if (str == NULL) in null_puts()
84 return strlen(str); in null_puts()
/openssl/crypto/engine/
H A Dtb_asnmth.c140 const char *str, in ENGINE_get_pkey_asn1_meth_str() argument
149 len = strlen(str); in ENGINE_get_pkey_asn1_meth_str()
155 && OPENSSL_strncasecmp(ameth->pem_str, str, len) == 0) in ENGINE_get_pkey_asn1_meth_str()
164 const char *str; member
180 && OPENSSL_strncasecmp(ameth->pem_str, lk->str, lk->len) == 0) { in look_str_cb()
189 const char *str, in ENGINE_pkey_asn1_find_str() argument
195 fstr.str = str; in ENGINE_pkey_asn1_find_str()

Completed in 46 milliseconds

123456789