-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed to compile gen_key.c #2170
Labels
Comments
Hi @phoenixmcallister, thank you for your report! I agree that an explicit cast should be added to Kind regards, |
hanno-becker
pushed a commit
to hanno-becker/mbedtls
that referenced
this issue
Nov 5, 2018
Opened #2175 to address this. |
ARM Internal Ref: IOTSSL-2617 |
hanno-becker
pushed a commit
to hanno-becker/mbedtls
that referenced
this issue
Nov 6, 2018
hanno-becker
pushed a commit
to hanno-becker/mbedtls
that referenced
this issue
Nov 6, 2018
This was referenced Nov 6, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Bug
OS
windows
mbed TLS build:
Version: 2.13.1
OS version: 17134.345
Configuration: default config
Compiler: Visual Studio Build Tools v141
Error
error C2664: 'const mbedtls_pk_info_t *mbedtls_pk_info_from_type(mbedtls_pk_type_t)': cannot convert argument 1 from 'int' to 'mbedtls_pk_type_t'
1>d:\gen_key.c(301): note: Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
1>d:\gen_key.c(301): error C2660: 'mbedtls_pk_setup': function does not take 1 arguments
1>d:\mbedtls\mbedtls\pk.h(207): note: see declaration of 'mbedtls_pk_setup'
1>d:\gen_key.c(318): error C2664: 'int mbedtls_ecp_gen_key(mbedtls_ecp_group_id,mbedtls_ecp_keypair *,int (__cdecl *)(void *,unsigned char *,size_t),void *)': cannot convert argument 1 from 'int' to 'mbedtls_ecp_group_id'
1>d:\gen_key.cp319): note: Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
The text was updated successfully, but these errors were encountered: