Skip to content

Commit

Permalink
Merge branch 'master' into unstable
Browse files Browse the repository at this point in the history
Change-Id: I33ce479e35533cf40df1579f0727d94da61de5b2
  • Loading branch information
Sriram Melkote committed Feb 15, 2019
2 parents de8e55f + f284ae5 commit 5abe9ad
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
4 changes: 3 additions & 1 deletion gen/CMakeLists.txt
Expand Up @@ -19,7 +19,9 @@ IF(APPLE)
SET (LDFLAGS "-s -extldflags '-Wl,-rpath,@executable_path/../lib'")
ENDIF()
IF(WIN32)
SET (LDFLAGS "${LDFLAGS} -linkmode internal")
IF("${MSVC_VERSION}" LESS 1910)
SET (LDFLAGS "${LDFLAGS} -linkmode internal")
ENDIF()
ENDIF()

IF(NOT DEFINED GOVERSION)
Expand Down
4 changes: 3 additions & 1 deletion producer/CMakeLists.txt
Expand Up @@ -9,7 +9,9 @@ IF(APPLE)
SET (LDFLAGS "-s -extldflags '-Wl,-rpath,@executable_path/../lib'")
ENDIF()
IF(WIN32)
SET (LDFLAGS "${LDFLAGS} -linkmode internal")
IF("${MSVC_VERSION}" LESS 1910)
SET (LDFLAGS "${LDFLAGS} -linkmode internal")
ENDIF()
ENDIF()

IF(NOT DEFINED GOVERSION)
Expand Down
12 changes: 9 additions & 3 deletions service_manager/manager.go
Expand Up @@ -204,11 +204,17 @@ func (m *ServiceMgr) initService() {
return
}

cbauthTLScfg, err1 := cbauth.GetTLSConfig()
if err1 != nil {
logging.Errorf("Error in getting cbauth tls config: %v", err1.Error())
return
}

config := &tls.Config{
Certificates: []tls.Certificate{cert},
CipherSuites: []uint16{tls.TLS_RSA_WITH_AES_256_CBC_SHA},
MinVersion: tls.VersionTLS12,
PreferServerCipherSuites: true,
CipherSuites: cbauthTLScfg.CipherSuites,
MinVersion: cbauthTLScfg.MinVersion,
PreferServerCipherSuites: cbauthTLScfg.PreferServerCipherSuites,
ClientAuth: clientAuthType,
}

Expand Down
15 changes: 15 additions & 0 deletions util/n1ql.go
Expand Up @@ -189,6 +189,21 @@ func (qs *queryStmt) VisitBuildIndexes(stmt *algebra.BuildIndexes) (interface{},
return stmt, err
}

func (qs *queryStmt) VisitCreateFunction(stmt *algebra.CreateFunction) (interface{}, error) {
err := handleStmt(qs, stmt.Expressions())
return stmt, err
}

func (qs *queryStmt) VisitDropFunction(stmt *algebra.DropFunction) (interface{}, error) {
err := handleStmt(qs, stmt.Expressions())
return stmt, err
}

func (qs *queryStmt) VisitExecuteFunction(stmt *algebra.ExecuteFunction) (interface{}, error) {
err := handleStmt(qs, stmt.Expressions())
return stmt, err
}

func (qs *queryStmt) VisitGrantRole(stmt *algebra.GrantRole) (interface{}, error) {
err := handleStmt(qs, stmt.Expressions())
return stmt, err
Expand Down

0 comments on commit 5abe9ad

Please sign in to comment.